var HeaderApp=function(e){"use strict";var t=document.createElement("style");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const a in e)if("default"!==a){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}return t.default=e,Object.freeze(t)}t.textContent=':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;-ms-touch-action:none;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n',document.head.appendChild(t);const o=a(e);function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={exports:{}},i={},n=e,l=Symbol.for("react.element"),c=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,u=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,a){var o,r={},s=null,i=null;for(o in void 0!==a&&(s=""+a),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(i=t.ref),t)d.call(t,o)&&!m.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===r[o]&&(r[o]=t[o]);return{$$typeof:l,type:e,key:s,ref:i,props:r,_owner:u.current}}i.Fragment=c,i.jsx=p,i.jsxs=p,s.exports=i;var f=s.exports;const h=e=>{let t;const a=new Set,o=(e,o)=>{const r="function"==typeof e?e(t):e;if(!Object.is(r,t)){const e=t;t=(null!=o?o:"object"!=typeof r||null===r)?r:Object.assign({},t,r),a.forEach(a=>a(t,e))}},r=()=>t,s={setState:o,getState:r,getInitialState:()=>i,subscribe:e=>(a.add(e),()=>a.delete(e)),destroy:()=>{a.clear()}},i=t=e(o,r,s);return s};var x={exports:{}},v={},g={exports:{}},b={},y=e;var j="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},w=y.useState,N=y.useEffect,_=y.useLayoutEffect,k=y.useDebugValue;function C(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!j(e,a)}catch(o){return!0}}var L="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),o=w({inst:{value:a,getSnapshot:t}}),r=o[0].inst,s=o[1];return _(function(){r.value=a,r.getSnapshot=t,C(r)&&s({inst:r})},[e,a,t]),N(function(){return C(r)&&s({inst:r}),e(function(){C(r)&&s({inst:r})})},[e]),k(a),a};b.useSyncExternalStore=void 0!==y.useSyncExternalStore?y.useSyncExternalStore:L,g.exports=b;var z=g.exports,S=e,P=z;var A="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},M=P.useSyncExternalStore,X=S.useRef,T=S.useEffect,Z=S.useMemo,H=S.useDebugValue;v.useSyncExternalStoreWithSelector=function(e,t,a,o,r){var s=X(null);if(null===s.current){var i={hasValue:!1,value:null};s.current=i}else i=s.current;s=Z(function(){function e(e){if(!l){if(l=!0,s=e,e=o(e),void 0!==r&&i.hasValue){var t=i.value;if(r(t,e))return n=t}return n=e}if(t=n,A(s,e))return t;var a=o(e);return void 0!==r&&r(t,a)?(s=e,t):(s=e,n=a)}var s,n,l=!1,c=void 0===a?null:a;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,a,o,r]);var n=M(e,s[0],s[1]);return T(function(){i.hasValue=!0,i.value=n},[n]),H(n),n},x.exports=v;const E=r(x.exports),{useDebugValue:R}=e,{useSyncExternalStoreWithSelector:V}=E;const I=e=>e;const B=e=>{const t="function"==typeof e?(e=>e?h(e):h)(e):e,a=(e,a)=>function(e,t=I,a){const o=V(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,a);return R(o),o}(t,e,a);return Object.assign(a,t),a},q=e=>e?B(e):B,F=q()((e,t)=>({device:2,isDesktop:()=>1===t().device,isMobile:()=>2===t().device,isTablet:()=>3===t().device,isApp:()=>4===t().device})),$=q()(()=>({logo:null,menu:null,menuSecundario:null,menuHeaderTop:null,listaPresente:!1,lojaUrlAcesso:"",midiaTamanhos:{},hostImagem:null,lojaNome:"",paginaTipo:5,termosMaisPesquisados:[],lojaConfiguracaoSite:null,lojaConfiguracaoLayout:null,lojaConfiguracaoSocial:null,lojaConfiguracaoAtendimento:null,contatoAtendimento:null,produtosRecomendados:[],listaFavoritos:[],lojaConfiguracaoPlugins:null,temaDark:!1,getResourceFromS3:(e,t)=>"https://public-resources.cdn.magazord.com.br/"+e+"/"+t,zordHintLoading:()=>"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="})),O=window.location.port,D=()=>"5173"===O||"3333"===O;async function W(e,t={}){t=D()?{}:t,e=D()?"http://localhost:3333/headerLocalData":e;try{const a=await fetch(e,t);a.ok||console.error("Erro ao executar a requisição: "+a.statusText);return await a.json()}catch(a){return console.error("Ocorreu um erro durante a requisição:",a),null}}const G=q()((e,t)=>({carrinhoLength:0,usuario:null,itens:[],totalItens:{totalParcelado:"",totalBoleto:"",totalPix:"",qtdParcelas:0,valorParcelas:"",variacoesVendas:[]},loading:!1,atualizaPreview:async()=>{e({loading:!0});try{D()&&await new Promise(e=>setTimeout(e,2e3));const t=new FormData;t.set("preview","true"),t.set("renderAsJson","true");const a=await W("/cliente?operation=getInfoExtra",{method:"POST",body:t});e({carrinhoLength:(null==a?void 0:a.carrinhoLength)||0,itens:null==a?void 0:a.itens,totalItens:null==a?void 0:a.totalItens,loading:!1})}catch(t){console.error("Erro ao realizar a requisição: "+t),e({loading:!1})}},removeItemCart:e=>{Zord.checkout.deleteItem(e,function(){t().atualizaPreview()})}}));const U={100:"#3D3F3C",200:"#383B37",400:"#2F312E",600:"#242724",800:"#1B1E1A",1e3:"#121511"};function Q(e){var t,a,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;te&&(t=0,o=a,a=new Map)}return{get:function(e){var t=a.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set:function(e,t){a.has(e)?a.set(e,t):r(e,t)}}}function se(e){var t=e.separator||":",a=1===t.length,o=t[0],r=t.length;return function(e){for(var s,i=[],n=0,l=0,c=0;cl?s-l:void 0}}}var ie=/\s+/;function ne(){for(var e=arguments.length,t=new Array(e),a=0;a1?t-1:0),o=1;o{var{className:a,variant:o="primary",action:r="default",size:s="md"}=e,i=qe(e,["className","variant","action","size"]);return f.jsx("button",Object.assign({className:Ve("flex items-center justify-center rounded-md text-sm transition-colors gap-space-8 outline-none h-max font-roboto",Be({size:s,variant:o}),Ie({action:r,variant:o}),"disabled:opacity-100 disabled:bg-secondary-50 disabled:text-secondary-300 disabled:border-0 disabled:cursor-not-allowed",a),ref:t},i))});Fe.displayName="Button";const $e=o.forwardRef((e,t)=>{const{alt:a,color:r="currentColor",size:s="1em",weight:i="regular",mirrored:n=!1,children:l,weights:c,...d}=e;return o.createElement("svg",{ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,fill:r,viewBox:"0 0 256 256",transform:n?"scale(-1, 1)":void 0,...d},!!a&&o.createElement("title",null,a),l,c.get(i))});$e.displayName="SSRBase";const Oe=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),De=o.forwardRef((e,t)=>o.createElement($e,{ref:t,...e,weights:Oe}));De.displayName="CheckCircleIcon";const We=De,Ge=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M108,84a16,16,0,1,1,16,16A16,16,0,0,1,108,84Zm128,44A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Zm-72,36.68V132a20,20,0,0,0-20-20,12,12,0,0,0-4,23.32V168a20,20,0,0,0,20,20,12,12,0,0,0,4-23.32Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M144,176a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176Zm88-48A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128ZM124,96a12,12,0,1,0-12-12A12,12,0,0,0,124,96Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-4,48a12,12,0,1,1-12,12A12,12,0,0,1,124,72Zm12,112a16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40a8,8,0,0,1,0,16Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M142,176a6,6,0,0,1-6,6,14,14,0,0,1-14-14V128a2,2,0,0,0-2-2,6,6,0,0,1,0-12,14,14,0,0,1,14,14v40a2,2,0,0,0,2,2A6,6,0,0,1,142,176ZM124,94a10,10,0,1,0-10-10A10,10,0,0,0,124,94Zm106,34A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M140,176a4,4,0,0,1-4,4,12,12,0,0,1-12-12V128a4,4,0,0,0-4-4,4,4,0,0,1,0-8,12,12,0,0,1,12,12v40a4,4,0,0,0,4,4A4,4,0,0,1,140,176ZM124,92a8,8,0,1,0-8-8A8,8,0,0,0,124,92Zm104,36A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]),Ue=o.forwardRef((e,t)=>o.createElement($e,{ref:t,...e,weights:Ge}));Ue.displayName="InfoIcon";const Qe=Ue,Je=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm84,108a83.6,83.6,0,0,1-16.75,50.28L77.72,60.75A84,84,0,0,1,212,128ZM44,128A83.6,83.6,0,0,1,60.75,77.72L178.28,195.25A84,84,0,0,1,44,128Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.56,87.56,0,0,1-20.41,56.28L71.72,60.4A88,88,0,0,1,216,128ZM40,128A87.56,87.56,0,0,1,60.41,71.72L184.28,195.6A88,88,0,0,1,40,128Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M200,128a71.69,71.69,0,0,1-15.78,44.91L83.09,71.78A71.95,71.95,0,0,1,200,128ZM56,128a71.95,71.95,0,0,0,116.91,56.22L71.78,83.09A71.69,71.69,0,0,0,56,128Zm180,0A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-20,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm90,102a89.6,89.6,0,0,1-22.29,59.22L68.78,60.29A89.95,89.95,0,0,1,218,128ZM38,128A89.6,89.6,0,0,1,60.29,68.78L187.22,195.71A89.95,89.95,0,0,1,38,128Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.56,87.56,0,0,1-20.41,56.28L71.72,60.4A88,88,0,0,1,216,128ZM40,128A87.56,87.56,0,0,1,60.41,71.72L184.28,195.6A88,88,0,0,1,40,128Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm92,100a91.67,91.67,0,0,1-24.21,62.13L65.87,60.21A92,92,0,0,1,220,128ZM36,128A91.67,91.67,0,0,1,60.21,65.87L190.13,195.79A92,92,0,0,1,36,128Z"}))]]),Ke=o.forwardRef((e,t)=>o.createElement($e,{ref:t,...e,weights:Je}));Ke.displayName="ProhibitIcon";const Ye=Ke,et=new Map([["bold",o.createElement(o.Fragment,null,o.createElement("path",{d:"M116,132V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0ZM236,91.55v72.9a19.86,19.86,0,0,1-5.86,14.14l-51.55,51.55A19.85,19.85,0,0,1,164.45,236H91.55a19.85,19.85,0,0,1-14.14-5.86L25.86,178.59A19.86,19.86,0,0,1,20,164.45V91.55a19.86,19.86,0,0,1,5.86-14.14L77.41,25.86A19.85,19.85,0,0,1,91.55,20h72.9a19.85,19.85,0,0,1,14.14,5.86l51.55,51.55A19.86,19.86,0,0,1,236,91.55Zm-24,1.66L162.79,44H93.21L44,93.21v69.58L93.21,212h69.58L212,162.79ZM128,156a16,16,0,1,0,16,16A16,16,0,0,0,128,156Z"}))],["duotone",o.createElement(o.Fragment,null,o.createElement("path",{d:"M224,91.55v72.9a8,8,0,0,1-2.34,5.66l-51.55,51.55a8,8,0,0,1-5.66,2.34H91.55a8,8,0,0,1-5.66-2.34L34.34,170.11A8,8,0,0,1,32,164.45V91.55a8,8,0,0,1,2.34-5.66L85.89,34.34A8,8,0,0,1,91.55,32h72.9a8,8,0,0,1,5.66,2.34l51.55,51.55A8,8,0,0,1,224,91.55Z",opacity:"0.2"}),o.createElement("path",{d:"M120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0ZM232,91.55v72.9a15.86,15.86,0,0,1-4.69,11.31l-51.55,51.55A15.86,15.86,0,0,1,164.45,232H91.55a15.86,15.86,0,0,1-11.31-4.69L28.69,175.76A15.86,15.86,0,0,1,24,164.45V91.55a15.86,15.86,0,0,1,4.69-11.31L80.24,28.69A15.86,15.86,0,0,1,91.55,24h72.9a15.86,15.86,0,0,1,11.31,4.69l51.55,51.55A15.86,15.86,0,0,1,232,91.55Zm-16,0L164.45,40H91.55L40,91.55v72.9L91.55,216h72.9L216,164.45ZM128,160a12,12,0,1,0,12,12A12,12,0,0,0,128,160Z"}))],["fill",o.createElement(o.Fragment,null,o.createElement("path",{d:"M227.31,80.23,175.77,28.69A16.13,16.13,0,0,0,164.45,24H91.55a16.13,16.13,0,0,0-11.32,4.69L28.69,80.23A16.13,16.13,0,0,0,24,91.55v72.9a16.13,16.13,0,0,0,4.69,11.32l51.54,51.54A16.13,16.13,0,0,0,91.55,232h72.9a16.13,16.13,0,0,0,11.32-4.69l51.54-51.54A16.13,16.13,0,0,0,232,164.45V91.55A16.13,16.13,0,0,0,227.31,80.23ZM120,80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))],["light",o.createElement(o.Fragment,null,o.createElement("path",{d:"M122,136V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0ZM230,91.55v72.9a13.92,13.92,0,0,1-4.1,9.9L174.35,225.9a13.92,13.92,0,0,1-9.9,4.1H91.55a13.92,13.92,0,0,1-9.9-4.1L30.1,174.35a13.92,13.92,0,0,1-4.1-9.9V91.55a13.92,13.92,0,0,1,4.1-9.9L81.65,30.1a13.92,13.92,0,0,1,9.9-4.1h72.9a13.92,13.92,0,0,1,9.9,4.1L225.9,81.65A13.92,13.92,0,0,1,230,91.55Zm-12,0a2,2,0,0,0-.59-1.42L165.87,38.59a2,2,0,0,0-1.42-.59H91.55a2,2,0,0,0-1.41.59L38.58,90.13A2,2,0,0,0,38,91.55v72.9a2,2,0,0,0,.59,1.42l51.54,51.54a2,2,0,0,0,1.42.59h72.9a2,2,0,0,0,1.41-.59l51.56-51.54a2,2,0,0,0,.58-1.42ZM128,162a10,10,0,1,0,10,10A10,10,0,0,0,128,162Z"}))],["regular",o.createElement(o.Fragment,null,o.createElement("path",{d:"M120,136V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0ZM232,91.55v72.9a15.86,15.86,0,0,1-4.69,11.31l-51.55,51.55A15.86,15.86,0,0,1,164.45,232H91.55a15.86,15.86,0,0,1-11.31-4.69L28.69,175.76A15.86,15.86,0,0,1,24,164.45V91.55a15.86,15.86,0,0,1,4.69-11.31L80.24,28.69A15.86,15.86,0,0,1,91.55,24h72.9a15.86,15.86,0,0,1,11.31,4.69l51.55,51.55A15.86,15.86,0,0,1,232,91.55Zm-16,0L164.45,40H91.55L40,91.55v72.9L91.55,216h72.9L216,164.45ZM128,160a12,12,0,1,0,12,12A12,12,0,0,0,128,160Z"}))],["thin",o.createElement(o.Fragment,null,o.createElement("path",{d:"M124,136V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0ZM228,91.55v72.9a12,12,0,0,1-3.51,8.49l-51.55,51.55a12,12,0,0,1-8.49,3.51H91.55a12,12,0,0,1-8.49-3.51L31.51,172.94A12,12,0,0,1,28,164.45V91.55a12,12,0,0,1,3.51-8.49L83.06,31.51A12,12,0,0,1,91.55,28h72.9a12,12,0,0,1,8.49,3.51l51.55,51.55A12,12,0,0,1,228,91.55Zm-8,0a4,4,0,0,0-1.17-2.83L167.28,37.17A4.06,4.06,0,0,0,164.45,36H91.55a4.06,4.06,0,0,0-2.83,1.17L37.17,88.72A4,4,0,0,0,36,91.55v72.9a4,4,0,0,0,1.17,2.83l51.55,51.55A4.06,4.06,0,0,0,91.55,220h72.9a4.06,4.06,0,0,0,2.83-1.17l51.55-51.55a4,4,0,0,0,1.17-2.83ZM128,164a8,8,0,1,0,8,8A8,8,0,0,0,128,164Z"}))]]),tt=o.forwardRef((e,t)=>o.createElement($e,{ref:t,...e,weights:et}));tt.displayName="WarningOctagonIcon";const at=tt;var ot=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,rt=e=>!e||"object"!=typeof e||0===Object.keys(e).length;function st(e,t){e.forEach(function(e){Array.isArray(e)?st(e,t):t.push(e)})}function it(e){let t=[];return st(e,t),t}var nt=(...e)=>it(e).filter(Boolean),lt=(e,t)=>{let a={},o=Object.keys(e),r=Object.keys(t);for(let s of o)if(r.includes(s)){let o=e[s],r=t[s];"object"==typeof o&&"object"==typeof r?a[s]=lt(o,r):Array.isArray(o)||Array.isArray(r)?a[s]=nt(r,o):a[s]=r+" "+o}else a[s]=e[s];for(let s of r)o.includes(s)||(a[s]=t[s]);return a},ct=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e;const dt=e=>{const t=ft(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{const a=e.split("-");return""===a[0]&&1!==a.length&&a.shift(),ut(a,t)||pt(e)},getConflictingClassGroupIds:(e,t)=>{const r=a[e]||[];return t&&o[e]?[...r,...o[e]]:r}}},ut=(e,t)=>{var a;if(0===e.length)return t.classGroupId;const o=e[0],r=t.nextPart.get(o),s=r?ut(e.slice(1),r):void 0;if(s)return s;if(0===t.validators.length)return;const i=e.join("-");return null==(a=t.validators.find(({validator:e})=>e(i)))?void 0:a.classGroupId},mt=/^\[(.+)\]$/,pt=e=>{if(mt.test(e)){const t=mt.exec(e)[1],a=null==t?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},ft=e=>{const{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return gt(Object.entries(e.classGroups),a).forEach(([e,a])=>{ht(a,o,e,t)}),o},ht=(e,t,a,o)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:xt(t,e)).classGroupId=a)}if("function"==typeof e)return vt(e)?void ht(e(o),t,a,o):void t.validators.push({validator:e,classGroupId:a});Object.entries(e).forEach(([e,r])=>{ht(r,xt(t,e),a,o)})})},xt=(e,t)=>{let a=e;return t.split("-").forEach(e=>{a.nextPart.has(e)||a.nextPart.set(e,{nextPart:new Map,validators:[]}),a=a.nextPart.get(e)}),a},vt=e=>e.isThemeGetter,gt=(e,t)=>t?e.map(([e,a])=>[e,a.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,a])=>[t+e,a])):e)]):e,bt=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map;const r=(r,s)=>{a.set(r,s),t++,t>e&&(t=0,o=a,a=new Map)};return{get(e){let t=a.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(r(e,t),t):void 0},set(e,t){a.has(e)?a.set(e,t):r(e,t)}}},yt=e=>{const{separator:t,experimentalParseClassName:a}=e,o=1===t.length,r=t[0],s=t.length,i=e=>{const a=[];let i,n=0,l=0;for(let u=0;ul?i-l:void 0}};return a?e=>a({className:e,parseClassName:i}):i},jt=e=>{if(e.length<=1)return e;const t=[];let a=[];return e.forEach(e=>{"["===e[0]?(t.push(...a.sort(),e),a=[]):a.push(e)}),t.push(...a.sort()),t},wt=/\s+/;function Nt(){let e,t,a=0,o="";for(;a{if("string"==typeof e)return e;let t,a="";for(let o=0;ot(e),e());return a=(e=>({cache:bt(e.cacheSize),parseClassName:yt(e),...dt(e)}))(l),o=a.cache.get,r=a.cache.set,s=i,i(n)};function i(e){const t=o(e);if(t)return t;const s=((e,t)=>{const{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(wt);let n="";for(let l=i.length-1;l>=0;l-=1){const e=i[l],{modifiers:t,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=a(e);let m=Boolean(u),p=o(m?d.substring(0,u):d);if(!p){if(!m){n=e+(n.length>0?" "+n:n);continue}if(p=o(d),!p){n=e+(n.length>0?" "+n:n);continue}m=!1}const f=jt(t).join(":"),h=c?f+"!":f,x=h+p;if(s.includes(x))continue;s.push(x);const v=r(p,m);for(let a=0;a0?" "+n:n)}return n})(e,a);return r(e,s),s}return function(){return s(Nt.apply(null,arguments))}}const Ct=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Lt=/^\[(?:([a-z-]+):)?(.+)\]$/i,zt=/^\d+\/\d+$/,St=new Set(["px","full","screen"]),Pt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,At=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zt=e=>Et(e)||St.has(e)||zt.test(e),Ht=e=>Qt(e,"length",Jt),Et=e=>Boolean(e)&&!Number.isNaN(Number(e)),Rt=e=>Qt(e,"number",Et),Vt=e=>Boolean(e)&&Number.isInteger(Number(e)),It=e=>e.endsWith("%")&&Et(e.slice(0,-1)),Bt=e=>Lt.test(e),qt=e=>Pt.test(e),Ft=new Set(["length","size","percentage"]),$t=e=>Qt(e,Ft,Kt),Ot=e=>Qt(e,"position",Kt),Dt=new Set(["image","url"]),Wt=e=>Qt(e,Dt,ea),Gt=e=>Qt(e,"",Yt),Ut=()=>!0,Qt=(e,t,a)=>{const o=Lt.exec(e);return!!o&&(o[1]?"string"==typeof t?o[1]===t:t.has(o[1]):a(o[2]))},Jt=e=>At.test(e)&&!Mt.test(e),Kt=()=>!1,Yt=e=>Xt.test(e),ea=e=>Tt.test(e),ta=()=>{const e=Ct("colors"),t=Ct("spacing"),a=Ct("blur"),o=Ct("brightness"),r=Ct("borderColor"),s=Ct("borderRadius"),i=Ct("borderSpacing"),n=Ct("borderWidth"),l=Ct("contrast"),c=Ct("grayscale"),d=Ct("hueRotate"),u=Ct("invert"),m=Ct("gap"),p=Ct("gradientColorStops"),f=Ct("gradientColorStopPositions"),h=Ct("inset"),x=Ct("margin"),v=Ct("opacity"),g=Ct("padding"),b=Ct("saturate"),y=Ct("scale"),j=Ct("sepia"),w=Ct("skew"),N=Ct("space"),_=Ct("translate"),k=()=>["auto",Bt,t],C=()=>[Bt,t],L=()=>["",Zt,Ht],z=()=>["auto",Et,Bt],S=()=>["","0",Bt],P=()=>[Et,Bt];return{cacheSize:500,separator:":",theme:{colors:[Ut],spacing:[Zt,Ht],blur:["none","",qt,Bt],brightness:P(),borderColor:[e],borderRadius:["none","","full",qt,Bt],borderSpacing:C(),borderWidth:L(),contrast:P(),grayscale:S(),hueRotate:P(),invert:S(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[It,Ht],inset:k(),margin:k(),opacity:P(),padding:C(),saturate:P(),scale:P(),sepia:S(),skew:P(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",Bt]}],container:["container"],columns:[{columns:[qt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Bt]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Vt,Bt]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Bt]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Vt,Bt]}],"grid-cols":[{"grid-cols":[Ut]}],"col-start-end":[{col:["auto",{span:["full",Vt,Bt]},Bt]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Ut]}],"row-start-end":[{row:["auto",{span:[Vt,Bt]},Bt]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Bt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Bt]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Bt,t]}],"min-w":[{"min-w":[Bt,t,"min","max","fit"]}],"max-w":[{"max-w":[Bt,t,"none","full","min","max","fit","prose",{screen:[qt]},qt]}],h:[{h:[Bt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Bt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Bt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Bt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qt,Ht]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rt]}],"font-family":[{font:[Ut]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Bt]}],"line-clamp":[{"line-clamp":["none",Et,Rt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Zt,Bt]}],"list-image":[{"list-image":["none",Bt]}],"list-style-type":[{list:["none","disc","decimal",Bt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Zt,Ht]}],"underline-offset":[{"underline-offset":["auto",Zt,Bt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Bt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Bt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Ot]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",$t]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-x":[{"border-x":[n]}],"border-w-y":[{"border-y":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[n]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Zt,Bt]}],"outline-w":[{outline:[Zt,Ht]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[Zt,Ht]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qt,Gt]}],"shadow-color":[{shadow:[Ut]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",qt,Bt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[b]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Bt]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",Bt]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",Bt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[Vt,Bt]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Bt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Bt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Bt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Zt,Ht,Rt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},aa=(e,t,a)=>{void 0!==a&&(e[t]=a)},oa=(e,t)=>{if(t)for(const a in t)aa(e,a,t[a])},ra=(e,t)=>{if(t)for(const a in t){const o=t[a];void 0!==o&&(e[a]=(e[a]||[]).concat(o))}},sa=(e,...t)=>"function"==typeof e?kt(ta,e,...t):kt(()=>((e,{cacheSize:t,prefix:a,separator:o,experimentalParseClassName:r,extend:s={},override:i={}})=>{aa(e,"cacheSize",t),aa(e,"prefix",a),aa(e,"separator",o),aa(e,"experimentalParseClassName",r);for(const n in i)oa(e[n],i[n]);for(const n in s)ra(e[n],s[n]);return e})(ta(),e),...t),ia=kt(ta);var na={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},la=e=>e||void 0,ca=(...e)=>la(it(e).filter(Boolean).join(" ")),da=null,ua={},ma=!1,pa=(...e)=>t=>t.twMerge?((!da||ma)&&(ma=!1,da=rt(ua)?ia:sa({...ua,extend:{theme:ua.theme,classGroups:ua.classGroups,conflictingClassGroupModifiers:ua.conflictingClassGroupModifiers,conflictingClassGroups:ua.conflictingClassGroups,...ua.extend}})),la(da(ca(e)))):ca(e),fa=(e,t)=>{for(let a in t)e.hasOwnProperty(a)?e[a]=ca(e[a],t[a]):e[a]=t[a];return e},ha=(e,t)=>{let{extend:a=null,slots:o={},variants:r={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:n={}}=e,l={...na,...t},c=null!=a&&a.base?ca(a.base,null==e?void 0:e.base):null==e?void 0:e.base,d=null!=a&&a.variants&&!rt(a.variants)?lt(r,a.variants):r,u=null!=a&&a.defaultVariants&&!rt(a.defaultVariants)?{...a.defaultVariants,...n}:n;!rt(l.twMergeConfig)&&!((e,t)=>JSON.stringify(e)===JSON.stringify(t))(l.twMergeConfig,ua)&&(ma=!0,ua=l.twMergeConfig);let m=rt(null==a?void 0:a.slots),p=rt(o)?{}:{base:ca(null==e?void 0:e.base,m&&(null==a?void 0:a.base)),...o},f=m?p:fa({...null==a?void 0:a.slots},rt(p)?{base:null==e?void 0:e.base}:p),h=rt(null==a?void 0:a.compoundVariants)?s:nt(null==a?void 0:a.compoundVariants,s),x=e=>{if(rt(d)&&rt(o)&&m)return pa(c,null==e?void 0:e.class,null==e?void 0:e.className)(l);if(h&&!Array.isArray(h))throw new TypeError('The "compoundVariants" prop must be an array. Received: '+typeof h);if(i&&!Array.isArray(i))throw new TypeError('The "compoundSlots" prop must be an array. Received: '+typeof i);let t=(e,t,a=[],o)=>{let r=a;if("string"==typeof t)r=r.concat(ct(t).split(" ").map(t=>`${e}:${t}`));else if(Array.isArray(t))r=r.concat(t.reduce((t,a)=>t.concat(`${e}:${a}`),[]));else if("object"==typeof t&&"string"==typeof o)for(let s in t)if(t.hasOwnProperty(s)&&s===o){let a=t[s];if(a&&"string"==typeof a){let t=ct(a);r[o]?r[o]=r[o].concat(t.split(" ").map(t=>`${e}:${t}`)):r[o]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(a)&&a.length>0&&(r[o]=a.reduce((t,a)=>t.concat(`${e}:${a}`),[]))}return r},a=(a,o=d,r=null,s=null)=>{var i;let n=o[a];if(!n||rt(n))return null;let c=null!=(i=null==s?void 0:s[a])?i:null==e?void 0:e[a];if(null===c)return null;let m=ot(c),p=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||!0===l.responsiveVariants,f=null==u?void 0:u[a],h=[];if("object"==typeof m&&p)for(let[e,d]of Object.entries(m)){let a=n[d];"initial"!==e?Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(e)||(h=t(e,a,h,r)):f=d}let x=n[(null!=m&&"object"!=typeof m?m:ot(f))||"false"];return"object"==typeof h&&"string"==typeof r&&h[r]?fa(h,x):h.length>0?(h.push(x),h):x},r=(e,t)=>{if(!d||"object"!=typeof d)return null;let o=new Array;for(let r in d){let s=a(r,d,e,t),i="base"===e&&"string"==typeof s?s:s&&s[e];i&&(o[o.length]=i)}return o},s={};for(let o in e)void 0!==e[o]&&(s[o]=e[o]);let n=(t,a)=>{var o;let r="object"==typeof(null==e?void 0:e[t])?{[t]:null==(o=e[t])?void 0:o.initial}:{};return{...u,...s,...r,...a}},p=(e=[],t)=>{let a=[];for(let{class:o,className:r,...s}of e){let e=!0;for(let[a,o]of Object.entries(s)){let r=n(a,t);if(Array.isArray(o)){if(!o.includes(r[a])){e=!1;break}}else if(r[a]!==o){e=!1;break}}e&&(o&&a.push(o),r&&a.push(r))}return a},x=e=>{let t=p(h,e);if(!Array.isArray(t))return t;let a={};for(let o of t)if("string"==typeof o&&(a.base=pa(a.base,o)(l)),"object"==typeof o)for(let[e,t]of Object.entries(o))a[e]=pa(a[e],t)(l);return a},v=e=>{if(i.length<1)return null;let t={};for(let{slots:a=[],class:o,className:r,...s}of i){if(!rt(s)){let t=!0;for(let a of Object.keys(s)){let o=n(a,e)[a];if(void 0===o||(Array.isArray(s[a])?!s[a].includes(o):s[a]!==o)){t=!1;break}}if(!t)continue}for(let e of a)t[e]=t[e]||[],t[e].push([o,r])}return t};if(!rt(o)||!m){let e={};if("object"==typeof f&&!rt(f))for(let t of Object.keys(f))e[t]=e=>{var a,o;return pa(f[t],r(t,e),(null!=(a=x(e))?a:[])[t],(null!=(o=v(e))?o:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(l)};return e}return pa(c,d?Object.keys(d).map(e=>a(e,d)):null,p(h),null==e?void 0:e.class,null==e?void 0:e.className)(l)};return x.variantKeys=(()=>{if(d&&"object"==typeof d)return Object.keys(d)})(),x.extend=a,x.base=c,x.slots=f,x.variants=d,x.defaultVariants=u,x.compoundSlots=i,x.compoundVariants=h,x};function xa(e){return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(e)}function va(e,t){if(!e)return"";const a=e.toString().normalize("NFKD").toLowerCase().replace(/\s+/g,"-").replace(/\-\-+/g,"-").replace(/-+$/g,"");return t?a.replace(/\/+/g,"/").replace(/[^a-z0-9\/-]+/g,""):a.replace(/[^\w\-]+/g,"")}function ga({width:e,height:t}){return f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 21",fill:"none",width:e??"21",height:t??"21",children:[f.jsx("path",{d:"M0.446976 10.3741C0.446976 12.1391 0.911976 13.8611 1.79498 15.3801L0.362976 20.5681L5.71298 19.1761C7.19298 19.9761 8.84998 20.3951 10.535 20.3951H10.54C16.101 20.3951 20.628 15.9031 20.63 10.3821C20.6333 9.06474 20.3741 7.75996 19.8674 6.54399C19.3607 5.32801 18.6167 4.22522 17.679 3.30005C16.7408 2.36454 15.6271 1.62344 14.4019 1.11927C13.1766 0.615102 11.8639 0.357776 10.539 0.362052C4.97698 0.362052 0.449976 4.85405 0.447976 10.3741",fill:"#2EB843"}),f.jsx("path",{d:"M0.087 10.371C0.087 12.199 0.568 13.983 1.483 15.556L0 20.931L5.541 19.488C7.07572 20.3171 8.79266 20.7512 10.537 20.751H10.541C16.302 20.751 20.992 16.098 20.995 10.379C20.9981 9.01411 20.7291 7.66224 20.2037 6.40247C19.6783 5.1427 18.907 4.0003 17.935 3.04205C16.9634 2.07364 15.8102 1.30646 14.5416 0.784458C13.273 0.262457 11.9138 -0.00410318 10.542 4.77426e-05C4.779 4.77426e-05 0.09 4.65305 0.087 10.371ZM3.387 15.285L3.181 14.959C2.31166 13.5872 1.85103 11.9961 1.853 10.372C1.855 5.61905 5.752 1.75205 10.544 1.75205C11.6839 1.74871 12.8132 1.97028 13.8673 2.40407C14.9215 2.83787 15.8796 3.47537 16.687 4.28005C17.4949 5.07666 18.1359 6.02632 18.5725 7.07353C19.0092 8.12073 19.2327 9.24446 19.23 10.379C19.227 15.132 15.33 18.999 10.541 18.999H10.538C8.98334 18.9997 7.45673 18.5851 6.116 17.798L5.797 17.61L2.509 18.465L3.387 15.285Z",fill:"white"}),f.jsx("path",{d:"M7.928 6.03502C7.733 5.60402 7.527 5.59502 7.341 5.58802C7.188 5.58102 7.014 5.58202 6.841 5.58202C6.70881 5.58528 6.57869 5.61572 6.45878 5.67147C6.33886 5.72721 6.23171 5.80705 6.144 5.90602C5.904 6.16602 5.229 6.79202 5.229 8.06802C5.229 9.34302 6.165 10.576 6.296 10.748C6.426 10.922 8.103 13.623 10.758 14.662C12.964 15.525 13.413 15.354 13.892 15.31C14.371 15.267 15.437 14.683 15.655 14.078C15.873 13.473 15.873 12.954 15.807 12.846C15.742 12.738 15.567 12.673 15.307 12.543C15.045 12.413 13.761 11.786 13.522 11.7C13.282 11.613 13.108 11.57 12.934 11.83C12.76 12.089 12.26 12.673 12.107 12.846C11.955 13.019 11.803 13.04 11.541 12.911C11.281 12.781 10.439 12.507 9.441 11.624C8.664 10.937 8.141 10.089 7.988 9.82902C7.835 9.56902 7.972 9.42902 8.102 9.30002C8.22 9.18402 8.364 8.99702 8.495 8.84602C8.625 8.69502 8.668 8.58602 8.755 8.41402C8.842 8.24102 8.799 8.08902 8.734 7.96002C8.668 7.83002 8.161 6.54702 7.928 6.03502Z",fill:"#fff"})]})}function ba({separator:e,customStyling:t,hasIconWhatsApp:a=!1,showWhatsAppNumber:o=!0}){const{lojaConfiguracaoLayout:r}=$(e=>({lojaConfiguracaoLayout:e.lojaConfiguracaoLayout})),{trocasDevolucoesHeader:s,valorFreteHeader:i,parcelamentoHeader:n,blogHeader:l,avaliacoesHeader:c,whatsappHeader:d}=r||{},u=[s,i,n,l,c,o?d:null].filter(Boolean),m=d?d.replace(/[^\d]/g,""):null;const p=m?`https://api.whatsapp.com/send?1=pt_BR&phone=55${m}`:null;return u.length>0&&f.jsx("ul",{className:Ve("!flex w-full items-center justify-center gap-space-10",null==t?void 0:t.ul),children:u.map((o,r)=>{const s=o===d;return f.jsxs("li",{className:Ve("text text-center text-[13px]",e&&"gap-space-10 flex items-center",i&&i===o&&"info-frete",null==t?void 0:t.li),children:[a&&s&&p?f.jsxs("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"gap-space-4 flex items-center hover:underline",title:"Clique aqui para iniciar uma conversa",children:[f.jsx(ga,{width:"16",height:"16"}),f.jsx("span",{dangerouslySetInnerHTML:{__html:d||""}})]}):f.jsx("span",{dangerouslySetInnerHTML:{__html:o||""}}),r{const{nome:t,link:a,childs:o}=e,r={name:t,url:a};return o&&o.length>0?[r,...ja(o)]:[r]}):[]}function wa(e){const t=document.createElement("script"),a=ja(e),o=null==a?void 0:a.map(e=>({"@type":"SiteNavigationElement",name:e.name,url:ya(e.url)})),r=JSON.stringify(o);return t.setAttribute("type","application/ld+json"),t.textContent=`\n {\n "@context": "http://schema.org",\n "@type": "SiteNavigationElement", \n "mainEntity": {\n "@type": "ItemList",\n "itemListElement": ${r}\n }\n }\n `,t}function Na(e,t,a){const o=a&&$.getState().midiaTamanhos?$.getState().midiaTamanhos[a]:"";return $.getState().hostImagem+"/"+e+t+"?"+o}function _a({item:e,className:t}){var a;return f.jsx("div",{className:Ve("banner-menu float-left",t),children:null==(a=e.banners)?void 0:a.map(e=>{var t,a,o,r,s,i;if((null==(t=e.path)?void 0:t.endsWith(".mp4"))||(null==(a=e.nome)?void 0:a.endsWith(".mp4")))return null;const n=f.jsx("img",{className:"block h-auto",src:Na(e.path,e.nome),alt:e.legenda??e.titulo,title:e.titulo,width:(null==(r=null==(o=null==e?void 0:e.midia_opcoes)?void 0:o.original)?void 0:r.width)??300,height:(null==(i=null==(s=null==e?void 0:e.midia_opcoes)?void 0:s.original)?void 0:i.height)??450});return e.url?f.jsx("a",{href:e.url,title:e.titulo,children:f.jsx("figure",{children:n})},e.id):f.jsx("figure",{children:n},e.id)})})}function ka({item:e,hoveredIndex:t}){var a;const o=t===e.id&&e.childs.length>0;return f.jsxs("div",{className:Ve("container-menu absolute z-[3] w-[470px] bg-menu-nav-color p-space-20 drop-shadow-md invisible pointer-events-none opacity-0 transition-all ease duration-200 translate-y-2",o&&"opacity-100 translate-y-0 visible pointer-events-auto"),children:[f.jsx("ul",{className:Ve(`menu-level-${e.nivel+1}`,`menu-child-${e.id}`,"w-full"),children:e.childs.map((e,t)=>f.jsxs("li",{className:Ve(`menu-list-${e.id}`,e.childs&&e.childs.length>0?"has-childs":"not-has-childs",va(e.nome),`item-menu-${va(e.nome)}`,t%2==0?"float-left":"float-right","mb-[6px] w-1/2 h-max"),children:[f.jsxs("a",{href:ya(e.link),className:Ve(`menu-link-${e.id}`,e.childs&&e.childs.length>0?"has-childs":"not-has-childs","flex items-center text-sm uppercase font-bold text-cor-texto dark:text-secondary-50 dark:hover:text-secondary-300"),children:[f.jsx("span",{className:Ve("menu-icon",!(e.icone_midia_path&&e.icone_midia_arquivo_nome)&&"no-icon"),children:e.icone_midia_path&&e.icone_midia_arquivo_nome&&f.jsx("img",{className:"h-auto",src:Na(e.icone_midia_path,e.icone_midia_arquivo_nome,e.icone_midia_tamanho),alt:e.icone_midia_path&&e.icone_midia_arquivo_nome,width:25,height:25})}),f.jsx("span",{className:"menu-text",children:e.nome})]}),e.childs&&e.childs.length>0&&Ca(e)]},e.id))}),(null==(a=e.opcoes)?void 0:a.tipoBanner)&&e.banners&&f.jsx(_a,{item:e})]})}function Ca(e){if(!e.childs)return null;const{getResourceFromS3:t,zordHintLoading:a}=$(e=>({getResourceFromS3:e.getResourceFromS3,zordHintLoading:e.zordHintLoading}));return f.jsx("div",{className:"container-menu",children:f.jsx("ul",{className:Ve(`menu-level-${e.nivel+1}`,3==e.nivel&&"mt-[5px]"),children:e.childs.map(e=>f.jsxs("li",{className:Ve(`menu-list-${e.id}`,e.childs&&e.childs.length>0?"has-childs":"not-has-childs",va(e.nome),`item-menu-${va(e.nome)}`),children:[f.jsxs("a",{href:ya(e.link),className:Ve(`menu-link-${e.id}`,e.childs&&e.childs.length>0?"has-childs":"not-has-childs",e.icone_midia_path&&e.icone_midia_arquivo_nome?"gap-space-4":"gap-space-10","text-xs text-cor-texto-secundario dark:text-secondary-400 hover:text-cor-base dark:hover:text-secondary-100 transition-all ease flex items-center"),children:[f.jsx("img",{src:D()?t("assets/global/header/react-project","icon-caret-right.svg"):a(),"data-src":t("assets/global/header/react-project","icon-caret-right.svg"),className:"lazyload lazyload-svg !size-[14px] fill-[#ccc]",alt:"Seta direita",draggable:!1}),f.jsx("span",{className:Ve("menu-icon",!(e.icone_midia_path&&e.icone_midia_arquivo_nome)&&"no-icon"),children:e.icone_midia_path&&e.icone_midia_arquivo_nome&&f.jsx("img",{className:"h-auto",src:Na(e.icone_midia_path,e.icone_midia_arquivo_nome,e.icone_midia_tamanho),alt:e.icone_midia_path&&e.icone_midia_arquivo_nome,width:25,height:25})}),f.jsx("span",{className:"menu-text",dangerouslySetInnerHTML:{__html:e.nome}})]}),e.childs&&e.childs.length>0&&Ca(e)]},e.id))})})}function La(){const[t,a]=e.useState(null),{menu:o,getResourceFromS3:r,zordHintLoading:s}=$(e=>({menu:e.menu,getResourceFromS3:e.getResourceFromS3,zordHintLoading:e.zordHintLoading}));return e.useEffect(()=>{if(o){const e=wa(o);return document.body.appendChild(e),()=>{document.body.removeChild(e)}}},[o]),e.useEffect(()=>{const e=document.getElementById("nav-root"),t=document.querySelector(".header-bottom > .container");if(e&&t){a=e,o=t,setTimeout(()=>{const e=a.offsetWidth,t=o.getBoundingClientRect().left,r=t+e;a.querySelectorAll("li.has-childs, li.has-child").forEach(a=>{const o=a.offsetWidth,s=a.querySelector(".container-menu");if(s){const i=s.offsetWidth,n=a.getBoundingClientRect().left-t;let l=n;a.getBoundingClientRect().left+i>r&&(l=n-i+o,l<0&&(l=(e-i)/2)),s.style.left=`${Math.round(l)}px`}})},500)}var a,o},[]),f.jsx("ul",{id:"nav-root",className:"flex items-center justify-center",children:o&&(null==o?void 0:o.map(e=>f.jsxs("li",{className:Ve(`menu-list-${e.id}`,e.childs.length>0?"has-childs":"not-has-childs",va(e.nome),`item-menu-${va(e.nome)}`,"group"),onMouseEnter:()=>a(e.id),onMouseLeave:()=>a(null),children:[f.jsxs("a",{href:ya(e.link),className:Ve(`menu-link-${e.id}`,e.childs.length>0?"has-childs":"not-has-childs","py-[15px] relative items-center px-space-20 text-sm group-hover:bg-cor-base transition-all ease text-white dark:font-medium flex items-cente z-[2]"),children:[f.jsx("span",{className:Ve("menu-icon",!(e.icone_midia_path&&e.icone_midia_arquivo_nome)&&"no-icon"),children:e.icone_midia_path&&e.icone_midia_arquivo_nome&&f.jsx("img",{className:"h-auto !max-w-[40px]",src:Na(e.icone_midia_path,e.icone_midia_arquivo_nome,e.icone_midia_tamanho),alt:e.icone_midia_path&&e.icone_midia_arquivo_nome,width:40,height:40})}),f.jsx("span",{className:"menu-text",dangerouslySetInnerHTML:{__html:e.nome}}),e.childs.length>0&&f.jsx("img",{src:D()?r("assets/global/header/react-project","icon-caret-down.svg"):s(),"data-src":r("assets/global/header/react-project","icon-caret-down.svg"),className:Ve("fill-white transition-all ease-in ml-space-4 min-w-space-12 arrow-menu lazyload lazyload-svg !size-[12px]",t===e.id&&"rotate-180"),alt:"Seta baixo",draggable:!1}),t===e.id&&e.childs.length>0&&f.jsx("div",{className:"text-secondary-50 absolute inset-x-0 bottom-[-6px] z-[2] flex justify-center",children:f.jsx("img",{src:D()?r("assets/global/header/react-project","icon-caret-up-fill.svg"):s(),"data-src":r("assets/global/header/react-project","icon-caret-up-fill.svg"),className:"lazyload lazyload-svg fill-cor-secundaria !size-[16px]",alt:"Seta cima",draggable:!1})})]}),e.childs.length>0&&f.jsx(ka,{item:e,hoveredIndex:t})]},e.id)))})}function za(){return f.jsx("div",{className:"header-bottom bg-light-color",children:f.jsx("div",{className:"container relative mx-auto",children:f.jsx(La,{})})})}function Sa({width:e,height:t,color:a,classSVG:o}){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e??30,height:t??30,fill:"none",children:f.jsx("g",{children:f.jsx("path",{d:"M28.17 27.286 27.128 8.415h-5.2V6.89c0-3.8-3.09-6.891-6.89-6.891A6.899 6.899 0 0 0 8.146 6.89v1.524H2.723l-.895 18.953-.001.033a2.587 2.587 0 0 0 .743 1.836A2.59 2.59 0 0 0 4.4 30h21.2a2.582 2.582 0 0 0 1.868-.804 2.583 2.583 0 0 0 .7-1.91ZM9.944 6.891a5.1 5.1 0 0 1 5.093-5.094 5.1 5.1 0 0 1 5.094 5.094v1.524H9.945V6.89Zm16.219 21.07a.778.778 0 0 1-.563.242H4.4a.78.78 0 0 1-.551-.23.778.778 0 0 1-.224-.54l.813-17.221h3.71v2.276a.898.898 0 1 0 1.797 0v-2.276h10.188v2.276a.898.898 0 1 0 1.797 0v-2.276h3.498l.947 17.174a.775.775 0 0 1-.21.574Z",fill:a??"#000",className:o})})})}async function Pa(){try{const e=await async function(){const e=await fetch("http://localhost:3333/headerLocalData");return await e.json()}();G.setState({carrinhoLength:e.carrinhoLength,usuario:e.usuario})}catch(e){console.error("Error fetching info extra:",e)}}function Aa({active:e,onOverlayClick:t,onMouseEnter:a,className:o,id:r}){return e&&f.jsx("div",{...r&&{id:r},className:Ve("fixed left-0 top-0 z-10 h-screen w-screen animate-overlayShow bg-black/60",o),onClick:t,onMouseEnter:a})}function Ma({openCart:t,customStyling:a}){var o,r,s,i,n,l;const[c,d]=e.useState(!1),{itens:u,loading:m,totalItens:p,atualizaPreview:h,carrinhoLength:x,removeItemCart:v}=G(e=>({itens:e.itens,loading:e.loading,totalItens:e.totalItens,atualizaPreview:e.atualizaPreview,carrinhoLength:e.carrinhoLength,removeItemCart:e.removeItemCart})),{lojaConfiguracaoSite:g,lojaConfiguracaoLayout:b}=$(e=>({lojaConfiguracaoSite:e.lojaConfiguracaoSite,lojaConfiguracaoLayout:e.lojaConfiguracaoLayout}));e.useEffect(()=>{(async()=>{if(t&&!c)try{h(),d(!0)}catch(e){console.error("Erro ao realizar a requisição: "+e)}})()},[t,c,h]);const y=!(Number(null==p?void 0:p.totalBoleto)>0||Number(null==p?void 0:p.totalPix)>0||Number(null==p?void 0:p.valorParcelas)>0);return f.jsx("div",{className:Ve("carrinho-rapido-ctn absolute top-0 right-0 opacity-0 pointer-events-none invisible transition-all ease duration-500 z-[10] translate-y-5 !p-0 !m-0",t&&"opacity-100 visible translate-y-0 pointer-events-auto"),children:f.jsxs("div",{className:Ve("carrinho-rapido absolute right-0 top-0 min-h-[100px] w-[350px] pt-[65px]",null==a?void 0:a.div),children:[f.jsx("div",{className:"absolute right-space-12 mt-[-12px] flex justify-center",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"min-w-space-20 fill-cor-base",width:"20",height:"20",viewBox:"0 0 256 256",children:f.jsx("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"})})}),m&&x>0?f.jsx("div",{className:"flex size-full min-h-[100px] items-center justify-center bg-cor-base text-center",children:f.jsx("div",{className:"size-10 animate-spin rounded-full border-2 border-secondary-200 border-t-secondary-500"})}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"header-cart column flex justify-center border-t-2 border-solid border-t-cor-base bg-white p-space-10 after:!hidden dark:bg-dark-600",children:f.jsx("a",{href:ya("/checkout/cart"),title:(null==(o=null==b?void 0:b.textosPersonalizados)?void 0:o["header.cart.title"])??"Meu carrinho",className:"w-full border-b border-solid border-b-cor-bordas pb-space-10 text-center text-sm font-bold uppercase text-cor-texto dark:text-secondary-100",children:(null==(r=null==b?void 0:b.textosPersonalizados)?void 0:r["header.cart.title"])??"Meu carrinho"})}),(null==u?void 0:u.length)>0?f.jsxs("div",{className:"content-cart bg-white px-space-10 dark:bg-dark-600",children:[f.jsx("div",{className:"cart-items z-[10] flex flex-col",children:u.map((e,t)=>f.jsxs("div",{className:"cart-item flex items-center gap-space-10 py-space-10 "+("promocaoBrinde"in e.info?"order-last bg-warning-50":""),id:e.carrinho_item_id.toString(),"data-valor":"promocaoBrinde"in e.info||(null==g?void 0:g.valoresSomenteLogado)?"":e.valor_total_item,"data-item-id":e.codigo_pai,"data-item-name":e.nome,"data-item-brand":e.marca,"data-item-category":e.categoria,"data-item-variant":e.derivacao_nome,"data-item-price":"promocaoBrinde"in e.info||(null==g?void 0:g.valoresSomenteLogado)?"":e.valor,"data-item-quantity":e.quantidade,"data-item-deposito":e.deposito,"data-name":e.nome,children:[f.jsx("div",{className:"prod-img w-[70px]",children:f.jsx("a",{title:e.nome,href:e.link?e.link:e.link_pai,children:e.midia_tipo_file&&("2"===e.midia_tipo_file||"3"===e.midia_tipo_file)&&(e.midia_path&&e.midia_path.endsWith(".mp4")||e.midia_arquivo_nome&&e.midia_arquivo_nome.endsWith(".mp4"))?f.jsx("video",{width:"65",style:{height:"auto"},autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:f.jsx("source",{src:e.midia_path.endsWith(".mp4")?e.midia_path:Na(e.midia_path,e.midia_arquivo_nome),type:"video/mp4"})}):f.jsx("img",{id:"product-img",src:Na(e.midia_path,e.midia_arquivo_nome,"small"),alt:e.midia_alt?e.midia_alt:e.nome,title:e.midia_alt?e.midia_alt:e.nome,className:"h-auto"})})}),f.jsxs("div",{className:"prod-info w-full overflow-hidden",children:[f.jsx("div",{className:"prod-nome truncate",children:f.jsx("a",{className:"text-xs text-cor-texto dark:text-secondary-100",title:e.nome,href:e.link?e.link:e.link_pai,children:e.nome})}),e.derivacoes_produto&&e.variacoes_produto?e.derivacoes_produto.map((t,a)=>f.jsxs("div",{className:"derivacao flex gap-space-4 text-[11px] text-cor-texto-secundario dark:text-secondary-300",children:[f.jsxs("span",{className:"deriva-nome font-semibold",children:[e.variacoes_produto[a].nome,": "]}),f.jsx("span",{className:"deriva-item",children:t.derivacao})]},a)):null,"promocaoBrinde"in e.info?f.jsx("div",{className:"flex",children:f.jsxs("span",{className:"mt-space-4 flex gap-space-4 rounded-full bg-warning-100 px-2 py-1 text-xs text-warning-1000",children:[f.jsx("span",{className:"icon text-lg leading-4",children:"✩"}),"Brinde"]})}):f.jsxs("div",{className:"qtd-value mt-space-10 flex items-center justify-between",children:[f.jsxs("div",{className:"quantidade flex gap-space-4 text-[11px] text-cor-texto dark:text-secondary-100",children:["Qtde:",f.jsx("span",{className:"qtd flex size-[18px] items-center justify-center border border-solid border-cor-bordas font-bold",children:e.quantidade})]}),f.jsx("div",{className:Ve("valor text-[13px] font-bold text-cor-texto dark:text-secondary-50",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(e.valor))})]})]}),f.jsx("div",{className:"prod-remove m-space-10 cursor-pointer font-bold text-color-error-500",children:f.jsx("span",{className:"cart-remove-item",title:"Remover item do carrinho","data-id":e.carrinho_item_id.toString(),onClick:()=>v(e.carrinho_item_id.toString()),children:"x"})})]},t))}),f.jsxs("div",{className:"box-total-btn",children:[f.jsxs("div",{className:"total flex flex-col p-space-10",children:[null==(s=null==p?void 0:p.variacoesVendas)?void 0:s.map(e=>f.jsxs("div",{className:"variacao-venda flex justify-between border-t border-solid border-t-cor-bordas pt-2 text-sm text-secondary-700",children:[f.jsx("div",{className:"label-content",children:e.descricao}),f.jsx("div",{className:"value-content",children:2===e.tipoVariacao?(null==g?void 0:g.valoresSomenteLogado)?f.jsxs("span",{className:"value discount-value preco-escondido text-error-500",children:["- R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsxs("div",{className:"value discount-value text-error-500",children:["- ",xa(Number(e.valorAplicado))]}):(null==g?void 0:g.valoresSomenteLogado)?f.jsxs("span",{className:"value preco-escondido",children:["R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsx("div",{className:"value",children:xa(Number(e.valorAplicado))})})]})),f.jsxs("div",{className:Ve("linha-total flex items-center justify-between pt-space-10",p.variacoesVendas.length>0?"":"border-t border-solid border-t-cor-bordas"),children:[f.jsx("h5",{className:"text-[13px] font-bold text-dark-400 dark:text-secondary-50",children:"Total"}),f.jsxs("div",{className:"flex flex-col",children:[Number(null==p?void 0:p.totalBoleto)>0&&[1,3].includes(Number(null==g?void 0:g.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"valor-final flex items-end justify-end gap-space-4",children:[f.jsx("span",{className:"valor text-[15px]",children:f.jsx("strong",{className:Ve("text-color-success-500",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==p?void 0:p.totalBoleto))})}),f.jsx("span",{className:"tipo-pagto text-xs text-cor-texto-secundario dark:text-secondary-300",children:"No Boleto"})]}),Number(null==p?void 0:p.totalPix)>0&&[4,5].includes(Number(null==g?void 0:g.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"valor-final flex items-end justify-end gap-space-4",children:[f.jsx("span",{className:"valor text-[15px]",children:f.jsx("strong",{className:Ve("text-color-success-500",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==p?void 0:p.totalPix))})}),f.jsx("span",{className:"tipo-pagto text-xs text-cor-texto-secundario dark:text-secondary-300",children:"No Pix"})]}),Number(null==p?void 0:p.totalParcelado)>0&&2==(null==g?void 0:g.formasDePagamentoPaginaProduto)&&f.jsxs("div",{className:"valor-final flex items-end justify-end gap-space-4",children:[f.jsx("span",{className:"valor text-[15px]",children:f.jsx("strong",{className:Ve("text-color-success-500",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==p?void 0:p.totalParcelado))})}),f.jsx("span",{className:"tipo-pagto text-xs text-cor-texto-secundario dark:text-secondary-300",children:"No Cartão"})]}),y&&Number(null==p?void 0:p.totalParcelado)>0&&f.jsx("div",{className:"valor-final flex items-end justify-end gap-space-4",children:f.jsx("span",{className:"valor text-[15px]",children:f.jsx("strong",{className:Ve("text-color-success-500",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==p?void 0:p.totalParcelado))})})}),Number(null==p?void 0:p.valorParcelas)>0&&[2,3,5].includes(Number(null==g?void 0:g.formasDePagamentoPaginaProduto))&&f.jsx("div",{className:"valor-final card flex justify-end text-secondary-600 dark:text-secondary-50",children:f.jsxs("span",{className:"flex items-center gap-space-4 text-xs",children:["Ou",f.jsxs("strong",{children:[null==p?void 0:p.qtdParcelas,"x"]}),"de",f.jsx("strong",{className:(null==g?void 0:g.valoresSomenteLogado)?"blur-[3px]":"",children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==p?void 0:p.valorParcelas))}),"no cartão"]})})]})]})]}),!(null==g?void 0:g.valoresSomenteLogado)&&f.jsx("div",{className:"checkout p-space-10",children:f.jsx("a",{href:ya("checkout/cart"),title:(null==(i=null==b?void 0:b.textosPersonalizados)?void 0:i["header.cart.buyButton"])??"Finalizar compra",children:f.jsx("div",{className:"button button-darken button-medium min-h-[30px] min-w-[100px] bg-color-success-500 p-space-10 text-center text-[13px] font-bold uppercase text-white",children:(null==(n=null==b?void 0:b.textosPersonalizados)?void 0:n["header.cart.buyButton"])??"Finalizar compra"})})})]})]}):f.jsx("div",{className:"content-cart bg-white px-space-10 pb-space-10 dark:bg-dark-600",children:f.jsx("div",{className:"empty-cart px-space-10 py-space-20 text-center text-[13px] text-black dark:text-secondary-200",children:(null==(l=null==b?void 0:b.textosPersonalizados)?void 0:l["header.cart.empty"])??"Seu carrinho está vazio"})})]})]})})}function Xa({openCart:t,clickOpenCart:a}){var o,r,s,i,n,l;const[c,d]=e.useState(!1),[u,m]=e.useState(!1),{lojaConfiguracaoSite:p,lojaConfiguracaoLayout:h}=$(e=>({lojaConfiguracaoSite:e.lojaConfiguracaoSite,lojaConfiguracaoLayout:e.lojaConfiguracaoLayout})),{itens:x,loading:v,totalItens:g,atualizaPreview:b,carrinhoLength:y,removeItemCart:j}=G(e=>({itens:e.itens,loading:e.loading,totalItens:e.totalItens,atualizaPreview:e.atualizaPreview,carrinhoLength:e.carrinhoLength,removeItemCart:e.removeItemCart}));e.useEffect(()=>{window.addEventListener("pageshow",e=>{m(!!e.persisted)});(async()=>{if(t&&!c||t&&u)try{b(),d(!0)}catch(e){console.error("Erro ao realizar a requisição: "+e)}})()},[t,c,b]);const w=!(Number(null==g?void 0:g.totalBoleto)>0||Number(null==g?void 0:g.totalPix)>0||Number(null==g?void 0:g.valorParcelas)>0),N=100==(null==h?void 0:h.templateHeader);return f.jsxs(f.Fragment,{children:[f.jsx(Aa,{active:t,onOverlayClick:a,className:"bg-black/40"}),f.jsx("div",{className:Ve("carrinho-rapido-ctn open-cart visible fixed bottom-0 left-0 z-[20] h-[90%] w-full overflow-hidden rounded-md transition-transform duration-500",t?"translate-y-0":"translate-y-[110%]",N?"backdrop-blur bg-gradient-to-t from-[#16181B] to-[#16181B]/70":"dark:bg-dark-600 bg-white"),children:f.jsxs("div",{className:"carrinho-rapido relative flex h-full flex-col justify-between",children:[f.jsx("div",{className:Ve("top-carrinho flex flex-col p-4",N?"bg-[#16181B]":"bg-cor-base"),onClick:a,children:f.jsxs("div",{className:"meu-carrinho space-between center flex justify-between",children:[f.jsxs("a",{className:"text-white",href:"/checkout/cart",title:(null==(o=null==h?void 0:h.textosPersonalizados)?void 0:o["header.cart.title"])??"Meu carrinho",children:[(null==(r=null==h?void 0:h.textosPersonalizados)?void 0:r["header.cart.title"])??"Meu carrinho",N&&` (${y})`]}),f.jsx("span",{className:"icon-arrow-bottom after:!hidden",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"#fff",viewBox:"0 0 256 256",children:f.jsx("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})})})]})}),v&&y>0?f.jsx("div",{className:"flex size-full items-center justify-center text-center",children:f.jsx("div",{className:"size-10 animate-spin rounded-full border-2 border-solid border-secondary-200 border-t-secondary-500"})}):f.jsx(f.Fragment,{children:(null==x?void 0:x.length)>0?f.jsxs("div",{className:"content-cart",children:[f.jsx("div",{className:"cart-items absolute left-0 top-[56px] !m-0 flex h-[calc(100%-220px)] w-full flex-col overflow-auto p-3",children:x.map((e,t)=>f.jsxs("div",{className:Ve("cart-item mb-4 flex flex-col rounded-md p-4 ","promocaoBrinde"in e.info?"order-last bg-warning-50":"",N?"bg-black border border-solid border-[#383D42]":"shadow-[0px_0px_10px_5px_#e2e8f0] dark:shadow-[0px_0px_10px_5px_#323335]"),id:e.carrinho_item_id.toString(),"data-valor":"promocaoBrinde"in e.info||(null==p?void 0:p.valoresSomenteLogado)?"":e.valor_total_item,"data-item-id":e.codigo_pai,"data-item-name":e.nome,"data-item-brand":e.marca,"data-item-category":e.categoria,"data-item-variant":e.derivacao_nome,"data-item-price":"promocaoBrinde"in e.info||(null==p?void 0:p.valoresSomenteLogado)?"":e.valor,"data-item-quantity":e.quantidade,"data-item-deposito":e.deposito,"data-name":e.nome,children:[f.jsxs("div",{className:"prod-nome flex justify-between gap-3",children:[f.jsx("a",{className:"mb-2 line-clamp-2 font-semibold leading-5 text-cor-base dark:text-white",title:e.nome,href:e.link?e.link:e.link_pai,children:e.nome}),f.jsx("div",{className:"prod-remove",children:f.jsx("span",{className:"cart-remove-item","data-id":e.carrinho_item_id.toString(),onClick:()=>j(e.carrinho_item_id.toString()),title:"Remover item do carrinho",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"#e44b4b",children:f.jsx("path",{opacity:"1",d:"M5.78306 0C4.78874 0 3.96962 0.83173 3.96962 1.84135V2.46154H0.333252V3.69231H1.54537V14.1538C1.54537 15.1683 2.3645 16 3.36355 16H10.6363C11.6353 16 12.4545 15.1683 12.4545 14.1538V3.69231H13.6666V2.46154H10.0302V1.84135C10.0302 0.83173 9.21109 0 8.21677 0H5.78306ZM5.78306 1.23077H8.21677C8.55768 1.23077 8.8181 1.49519 8.8181 1.84135V2.46154H5.18174V1.84135C5.18174 1.49519 5.44215 1.23077 5.78306 1.23077ZM2.75749 3.69231H11.2423V14.1538C11.2423 14.5 10.9772 14.7692 10.6363 14.7692H3.36355C3.02265 14.7692 2.75749 14.5 2.75749 14.1538V3.69231ZM3.96962 4.92308V13.5385H5.18174V4.92308H3.96962ZM6.39386 4.92308V13.5385H7.60598V4.92308H6.39386ZM8.8181 4.92308V13.5385H10.0302V4.92308H8.8181Z"})})})})]}),f.jsxs("div",{className:"flex items-center",children:[f.jsx("div",{className:"prod-img mr-2 size-24 min-w-24 overflow-hidden rounded-sm border-[1px] border-secondary-100",children:f.jsx("a",{title:e.nome,href:e.link?e.link:e.link_pai,children:e.midia_tipo_file&&("2"===e.midia_tipo_file||"3"===e.midia_tipo_file)&&(e.midia_path&&e.midia_path.endsWith(".mp4")||e.midia_arquivo_nome&&e.midia_arquivo_nome.endsWith(".mp4"))?f.jsx("video",{width:"65",style:{height:"auto"},autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:f.jsx("source",{src:e.midia_path.endsWith(".mp4")?e.midia_path:Na(e.midia_path,e.midia_arquivo_nome),type:"video/mp4"})}):f.jsx("img",{id:"product-img",src:Na(e.midia_path,e.midia_arquivo_nome,"small"),alt:e.midia_alt?e.midia_alt:e.nome,title:e.midia_alt?e.midia_alt:e.nome})})}),f.jsxs("div",{className:"prod-info w-full text-sm text-secondary-700 dark:text-secondary-200",children:[e.derivacoes_produto&&e.variacoes_produto?e.derivacoes_produto.map((t,a)=>f.jsxs("div",{className:"derivacao flex w-full justify-between",children:[f.jsxs("span",{className:"deriva-nome",children:[e.variacoes_produto[a].nome,": "]}),f.jsx("span",{className:"deriva-item",children:t.derivacao})]},a)):null,"promocaoBrinde"in e.info?f.jsx("div",{className:"flex",children:f.jsxs("span",{className:"mt-space-4 flex gap-space-4 rounded-full bg-warning-100 px-2 py-1 text-xs text-warning-1000",children:[f.jsx("span",{className:"icon text-lg leading-4",children:"✩"}),"Brinde"]})}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"qtd-value flex w-full justify-between",children:[f.jsx("span",{children:"Qtde: "}),f.jsx("span",{children:e.quantidade})]}),f.jsxs("div",{className:"avlor flex w-full justify-between",children:[f.jsx("span",{children:"Valor: "}),f.jsx("span",{className:Ve("font-bold",(null==p?void 0:p.valoresSomenteLogado)&&"blur-[3px]"),children:(null==p?void 0:p.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(e.valor))})]})]})]})]})]},t))}),f.jsxs("div",{className:"area-finalizar-compra absolute inset-x-0 bottom-0 flex min-h-[120px] flex-col justify-between gap-2 bg-[#ebebeb] p-4 after:hidden dark:dark:bg-dark-400",children:[null==(s=null==g?void 0:g.variacoesVendas)?void 0:s.map(e=>f.jsxs("div",{className:"variacao-venda mb-2 flex justify-between text-sm text-secondary-700",children:[f.jsx("div",{className:"label-content",children:e.descricao}),f.jsx("div",{className:"value-content",children:2===e.tipoVariacao?(null==p?void 0:p.valoresSomenteLogado)?f.jsxs("span",{className:"value discount-value preco-escondido text-error-500",children:["- R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsxs("div",{className:"value discount-value text-error-500",children:["- ",xa(Number(e.valorAplicado))]}):(null==p?void 0:p.valoresSomenteLogado)?f.jsxs("span",{className:"value preco-escondido",children:["R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsx("div",{className:"value",children:xa(Number(e.valorAplicado))})})]})),f.jsx("span",{className:"absolute -top-10 left-0 h-10 w-full bg-gradient-to-t from-secondary-200 dark:from-secondary-900"}),f.jsxs("div",{className:"flex flex-col divide-y-[1px] divide-[#dddddd] text-sm text-secondary-700",children:[Number(null==g?void 0:g.totalBoleto)>0&&[1,3].includes(Number(null==p?void 0:p.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"formas forma-boleto flex items-center justify-between py-2",children:[f.jsxs("div",{className:"boleto flex items-center gap-2",children:[f.jsx("span",{className:"icon icon-boleto size-5",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fillRule:"evenodd",clipRule:"evenodd",viewBox:"0 0 203 138",children:f.jsx("path",{d:"M0 138h9V0H0v138zm194 0h9V0h-9v138zm-19 0h10V0h-10v138zm-37 0h28V0h-28v138zm-27 0h18V0h-18v138zm-28 0h9V0h-9v138zm-28 0h19V0H55v138zm-36 0h27V0H19v138z",className:"fill-dark-600 dark:fill-secondary-100"})})}),f.jsx("span",{className:"tittle boleto",children:"Boleto"})]}),f.jsx("span",{className:Ve("valor valor-pix text-base font-bold text-success-600",(null==p?void 0:p.valoresSomenteLogado)&&"blur-[3px]"),children:(null==p?void 0:p.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==g?void 0:g.totalBoleto))})]}),Number(null==g?void 0:g.totalPix)>0&&[4,5].includes(Number(null==p?void 0:p.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"formas forma-pix flex items-center justify-between py-2",children:[f.jsxs("div",{className:"pix flex items-center gap-2",children:[f.jsx("span",{className:"icon icon-pix size-5",children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 21 20",children:[f.jsx("path",{d:"M15.597 15.822a2.92 2.92 0 0 1-2.077-.86l-3-3a.57.57 0 0 0-.788 0L6.72 14.974a2.92 2.92 0 0 1-2.078.86h-.59l3.799 3.8a3.039 3.039 0 0 0 4.296 0l3.81-3.81h-.36ZM4.643 5.212a2.92 2.92 0 0 1 2.078.86l3.01 3.011a.559.559 0 0 0 .789 0l3-3a2.92 2.92 0 0 1 2.077-.86h.362l-3.81-3.81a3.038 3.038 0 0 0-4.297 0l-3.8 3.799h.591Z",fill:"#32BCAD"}),f.jsx("path",{d:"m19.11 8.374-2.302-2.302a.438.438 0 0 1-.164.033h-1.047c-.541 0-1.07.22-1.453.602l-3 3c-.28.28-.65.42-1.018.42-.369 0-.737-.14-1.018-.42L6.097 6.696a2.069 2.069 0 0 0-1.454-.602H3.356a.437.437 0 0 1-.154-.031L.89 8.374a3.038 3.038 0 0 0 0 4.297l2.31 2.312a.436.436 0 0 1 .155-.032h1.287c.542 0 1.071-.219 1.454-.602l3.01-3.01c.545-.544 1.493-.544 2.037 0l3 3a2.07 2.07 0 0 0 1.453.601h1.047a.44.44 0 0 1 .164.033l2.302-2.302a3.039 3.039 0 0 0 0-4.297Z",fill:"#32BCAD"})]})}),f.jsx("span",{className:"tittle pix",children:"PIX"})]}),f.jsx("span",{className:Ve("valor valor-pix text-base font-bold text-success-600",(null==p?void 0:p.valoresSomenteLogado)&&"blur-[3px]"),children:(null==p?void 0:p.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==g?void 0:g.totalPix))})]}),Number(null==g?void 0:g.valorParcelas)>0&&[2,3,5].includes(Number(null==p?void 0:p.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"formas forma-cartao flex items-center justify-between py-2",children:[f.jsxs("div",{className:"cartao flex items-center gap-2",children:[f.jsx("span",{className:"icon icon-card size-5",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 32 32",children:f.jsx("path",{d:"M28 7H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM21 21h4M15 21h2M3 12.112h26",stroke:"#000",className:"dark:fill-secondary-100",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),f.jsx("span",{className:"tittle card",children:"Cartão"})]}),f.jsx("span",{className:"valor valor-cartao text-xs text-secondary-600",children:Number(null==g?void 0:g.totalParcelado)>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"flex justify-end text-base font-bold text-success-600 "+((null==p?void 0:p.valoresSomenteLogado)?"blur-[3px]":""),children:(null==p?void 0:p.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==g?void 0:g.totalParcelado))}),f.jsxs("div",{className:"text-xs",children:[f.jsxs("span",{className:"text-sm",children:[null==g?void 0:g.qtdParcelas,"x de "]}),f.jsx("span",{className:(null==p?void 0:p.valoresSomenteLogado)?"blur-[3px]":"",children:(null==p?void 0:p.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==g?void 0:g.valorParcelas))})]})]}):f.jsxs("div",{children:[f.jsxs("span",{className:"text-base font-bold text-success-600",children:[null==g?void 0:g.qtdParcelas,"x"]}),f.jsx("span",{children:" de "}),f.jsx("span",{className:(null==p?void 0:p.valoresSomenteLogado)?"blur-[3px]":"text-base font-bold text-success-600",children:(null==p?void 0:p.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==g?void 0:g.valorParcelas))})]})})]}),w&&Number(null==g?void 0:g.totalParcelado)>0&&f.jsxs("div",{className:"formas flex items-center justify-between py-2",children:[f.jsx("span",{className:"tittle font-semibold text-dark-400",children:"Total:"}),f.jsx("span",{className:"valor valor-default text-base font-bold text-success-600",children:f.jsx("span",{className:Ve("valor valor-pix text-base font-bold text-success-600",(null==p?void 0:p.valoresSomenteLogado)&&"blur-[3px]"),children:(null==p?void 0:p.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==g?void 0:g.totalParcelado))})})]})]}),!(null==p?void 0:p.valoresSomenteLogado)&&f.jsx("a",{href:ya("checkout/cart"),title:(null==(i=null==h?void 0:h.textosPersonalizados)?void 0:i["header.cart.buyButton"])??"Finalizar compra",children:f.jsxs("button",{className:Ve("finalizar-compra flex w-full items-center justify-center gap-4 rounded-md p-2 text-white",N?"bg-cor-primaria text-vlack":"bg-cor-base"),children:[f.jsx("span",{children:(null==(n=null==h?void 0:h.textosPersonalizados)?void 0:n["header.cart.buyButton"])??"Finalizar compra"}),f.jsx("span",{className:"icon-arrow-right flex",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"11",fill:"none",viewBox:"0 0 21 11",children:f.jsx("g",{children:f.jsx("path",{d:"M14.7.688a.686.686 0 0 0-.207.488.676.676 0 0 0 .207.488l3.22 3.162H1.442a.707.707 0 0 0-.495.202.681.681 0 0 0 0 .972c.131.13.31.201.495.201h16.464L14.7 9.343a.681.681 0 0 0 .494 1.17.707.707 0 0 0 .493-.2L20.14 5.94a.606.606 0 0 0 .19-.436.597.597 0 0 0-.19-.437L15.694.687a.701.701 0 0 0-.497-.203.711.711 0 0 0-.497.204Z",fill:N?"#000":"#fff"})})})})]})})]})]}):f.jsx("div",{className:"content-cart flex h-full items-center justify-center",children:f.jsxs("span",{className:"box-empty-cart flex flex-col items-center justify-center gap-6",children:[f.jsx("span",{className:"icon-sad",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"140",height:"106",viewBox:"0 0 140 106",fill:"none",children:f.jsxs("g",{children:[f.jsx("path",{d:"M10.8943 97.0327C14.1468 103.065 21.0492 105.655 21.0492 105.655C21.0492 105.655 22.6789 98.4638 19.4265 92.4312C16.1743 86.3986 9.27163 83.8088 9.27163 83.8088C9.27163 83.8088 7.64213 91.0001 10.8943 97.0327Z",fill:"#A0ABB5"}),f.jsx("path",{d:"M13.1304 95.048C19.0021 98.5813 21.2635 105.599 21.2635 105.599C21.2635 105.599 14.005 106.889 8.13308 103.355C2.26146 99.8221 0 92.8042 0 92.8042C0 92.8042 7.25854 91.5146 13.1304 95.048Z",fill:"#122D47"}),f.jsx("path",{d:"M129.106 97.0327C125.853 103.065 118.951 105.655 118.951 105.655C118.951 105.655 117.321 98.4638 120.573 92.4312C123.826 86.3986 130.728 83.8088 130.728 83.8088C130.728 83.8088 132.358 91.0001 129.106 97.0327Z",fill:"#A0ABB5"}),f.jsx("path",{d:"M126.87 95.048C120.998 98.5813 118.736 105.599 118.736 105.599C118.736 105.599 125.995 106.889 131.867 103.355C137.739 99.8221 140 92.8042 140 92.8042C140 92.8042 132.741 91.5146 126.87 95.048Z",fill:"#122D47"}),f.jsx("path",{d:"M94.7444 94.2704H32.7817V93.8246H94.2985V72.2006H37.9908L35.2554 66.501L35.6574 66.3081L38.2713 71.7547H94.7444V94.2704ZM41.0289 105.194C43.6141 105.194 45.7096 103.098 45.7096 100.512C45.7096 97.927 43.6141 95.8308 41.0289 95.8308C38.444 95.8308 36.3482 97.927 36.3482 100.512C36.3482 103.098 38.444 105.194 41.0289 105.194ZM87.1669 105.194C89.7518 105.194 91.8474 103.098 91.8474 100.512C91.8474 97.927 89.7518 95.8308 87.1669 95.8308C84.5817 95.8308 82.4862 97.927 82.4862 100.512C82.4862 103.098 84.5817 105.194 87.1669 105.194ZM101.372 64.844H31.7256L16.6556 15.5773H116.892L116.8 15.867L101.372 64.844ZM32.0553 64.3982H101.045L116.284 16.023H17.2582L32.0553 64.3982Z",fill:"#718191"}),f.jsx("path",{d:"M95.9358 62.2804H34.7629L21.5265 18.5867H109.567L109.487 18.8439L95.9358 62.2804Z",fill:"#F2F2F2"}),f.jsx("path",{d:"M118.14 11.1758L117.709 11.0614L120.65 -0.027771H137.762V0.418217H120.993L118.14 11.1758ZM111.883 30.5133H21.5255V30.959H111.883V30.5133ZM106.708 46.9394H26.5495V47.3851H106.708V46.9394Z",fill:"#718191"}),f.jsx("path",{d:"M66.9948 15.8003H66.5489V64.6213H66.9948V15.8003ZM86.9536 15.7862L83.7537 64.6058L84.1986 64.6352L87.3985 15.8152L86.9536 15.7862ZM46.6001 15.7856L46.1552 15.8147L49.3365 64.6357L49.7814 64.6066L46.6001 15.7856ZM139.738 105.477H0V106H139.738V105.477Z",fill:"#718191"})]})})}),f.jsx("span",{className:"empty-cart text-secondary-500 dark:text-secondary-200",children:(null==(l=null==h?void 0:h.textosPersonalizados)?void 0:l["header.cart.empty"])??"Seu carrinho está vazio"})]})})})]})})]})}function Ta({openCart:t,customStyling:a}){var o,r,s,i,n,l;const[c,d]=e.useState(!1),{itens:u,loading:m,totalItens:p,atualizaPreview:h,carrinhoLength:x,removeItemCart:v}=G(e=>({itens:e.itens,loading:e.loading,totalItens:e.totalItens,atualizaPreview:e.atualizaPreview,carrinhoLength:e.carrinhoLength,removeItemCart:e.removeItemCart})),{lojaConfiguracaoSite:g,lojaConfiguracaoLayout:b}=$(e=>({lojaConfiguracaoSite:e.lojaConfiguracaoSite,lojaConfiguracaoLayout:e.lojaConfiguracaoLayout}));e.useEffect(()=>{(async()=>{if(t&&!c)try{h(),d(!0)}catch(e){console.error("Erro ao realizar a requisição: "+e)}})()},[t,c,h]);const y=!(Number(null==p?void 0:p.totalBoleto)>0||Number(null==p?void 0:p.totalPix)>0||Number(null==p?void 0:p.valorParcelas)>0);return f.jsx("div",{className:Ve("carrinho-rapido-ctn absolute top-[100%] right-0 left-0 opacity-0 pointer-events-none invisible transition-all ease duration-500 z-[10] translate-y-5 !p-0 !m-0",t&&"opacity-100 visible translate-y-0 pointer-events-auto"),children:f.jsxs("div",{className:Ve("carrinho-rapido absolute right-0 top-0 min-h-[100px] w-[350px] rounded-md -left-[85px] max-[1500px]:-left-[initial] pt-space-10",null==a?void 0:a.div),children:[!m&&f.jsx("span",{className:"right-[initial] block h-[17px] w-full bg-[center_top] bg-no-repeat before:!hidden",style:{backgroundImage:'url("https://public-resources.cdn.magazord.com.br/assets/global/clientes/frontend/header-12/arrow.svg")'}}),m&&x>0?f.jsx("div",{className:"flex size-full min-h-[100px] items-center justify-center rounded-md bg-cor-base text-center",children:f.jsx("div",{className:"size-10 animate-spin rounded-full border-2 border-secondary-200 border-t-secondary-500"})}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"header-cart column flex justify-center rounded-t-md !border-none !bg-footer-default-color !p-0 after:!hidden dark:!bg-dark-800",children:f.jsx("a",{href:ya("/checkout/cart"),title:(null==(o=null==b?void 0:b.textosPersonalizados)?void 0:o["header.cart.title"])??"Meu carrinho",className:"w-full p-5 text-center text-sm font-bold uppercase text-cor-texto dark:text-secondary-50",children:(null==(r=null==b?void 0:b.textosPersonalizados)?void 0:r["header.cart.title"])??"Meu carrinho"})}),(null==u?void 0:u.length)>0?f.jsxs("div",{className:"content-cart rounded-b-md bg-white px-space-10 dark:bg-dark-600",children:[f.jsx("div",{className:"cart-items z-[10] flex flex-col",children:u.map((e,t)=>f.jsxs("div",{className:"cart-item flex items-center gap-space-10 py-space-10 "+("promocaoBrinde"in e.info?"order-last bg-warning-50":""),id:e.carrinho_item_id.toString(),"data-name":e.nome,"data-item-id":e.codigo_pai,"data-item-name":e.nome,"data-item-brand":e.marca,"data-item-category":e.categoria,"data-item-variant":e.derivacao_nome,"data-item-quantity":e.quantidade,"data-item-deposito":e.deposito,"data-item-price":"promocaoBrinde"in e.info||(null==g?void 0:g.valoresSomenteLogado)?"":e.valor,"data-valor":"promocaoBrinde"in e.info||(null==g?void 0:g.valoresSomenteLogado)?"":e.valor_total_item,children:[f.jsx("div",{className:"prod-img w-[70px]",children:f.jsx("a",{title:e.nome,href:e.link?e.link:e.link_pai,children:e.midia_tipo_file&&("2"===e.midia_tipo_file||"3"===e.midia_tipo_file)&&(e.midia_path&&e.midia_path.endsWith(".mp4")||e.midia_arquivo_nome&&e.midia_arquivo_nome.endsWith(".mp4"))?f.jsx("video",{width:"65",style:{height:"auto"},autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:f.jsx("source",{src:e.midia_path.endsWith(".mp4")?e.midia_path:Na(e.midia_path,e.midia_arquivo_nome),type:"video/mp4"})}):f.jsx("img",{id:"product-img",src:Na(e.midia_path,e.midia_arquivo_nome,"small"),alt:e.midia_alt?e.midia_alt:e.nome,title:e.midia_alt?e.midia_alt:e.nome,className:"h-auto"})})}),f.jsxs("div",{className:"prod-info overflow-hidden",children:[f.jsx("div",{className:"prod-nome truncate",children:f.jsx("a",{className:"text-xs text-cor-texto dark:text-secondary-50",title:e.nome,href:e.link?e.link:e.link_pai,children:e.nome})}),e.derivacoes_produto&&e.variacoes_produto?e.derivacoes_produto.map((t,a)=>f.jsxs("div",{className:"derivacao flex gap-space-4 text-[11px] text-cor-texto-secundario dark:text-secondary-200",children:[f.jsxs("span",{className:"deriva-nome font-semibold",children:[e.variacoes_produto[a].nome,": "]}),f.jsx("span",{className:"deriva-item",children:t.derivacao})]},a)):null,"promocaoBrinde"in e.info?f.jsx("div",{className:"flex",children:f.jsxs("span",{className:"mt-space-4 flex gap-space-4 rounded-full bg-warning-100 px-2 py-1 text-xs text-warning-1000",children:[f.jsx("span",{className:"icon text-lg leading-4",children:"✩"}),"Brinde"]})}):f.jsxs("div",{className:"qtd-value mt-space-10 flex items-center justify-between",children:[f.jsxs("div",{className:"quantidade flex gap-space-4 text-[11px] text-cor-texto dark:text-secondary-50",children:["Qtde:",f.jsx("span",{className:"qtd flex size-[18px] items-center justify-center border border-solid border-cor-bordas font-bold",children:e.quantidade})]}),f.jsx("div",{className:Ve("valor text-[13px] font-bold dark:text-secondary-50 text-cor-texto",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(e.valor))})]})]}),f.jsx("div",{className:"prod-remove m-space-10 cursor-pointer font-bold text-color-error-500",children:f.jsx("span",{className:"cart-remove-item",title:"Remover item do carrinho","data-id":e.carrinho_item_id.toString(),onClick:()=>v(e.carrinho_item_id.toString()),children:"x"})})]},t))}),f.jsxs("div",{className:"box-total-btn",children:[f.jsxs("div",{className:"total flex flex-col p-space-10",children:[null==(s=null==p?void 0:p.variacoesVendas)?void 0:s.map(e=>f.jsxs("div",{className:"variacao-venda flex justify-between border-t border-solid border-t-cor-bordas pt-2 text-sm text-secondary-700",children:[f.jsx("div",{className:"label-content",children:e.descricao}),f.jsx("div",{className:"value-content",children:2===e.tipoVariacao?(null==g?void 0:g.valoresSomenteLogado)?f.jsxs("span",{className:"value discount-value preco-escondido text-error-500",children:["- R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsxs("div",{className:"value discount-value text-error-500",children:["- ",xa(Number(e.valorAplicado))]}):(null==g?void 0:g.valoresSomenteLogado)?f.jsxs("span",{className:"value preco-escondido",children:["R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsx("div",{className:"value",children:xa(Number(e.valorAplicado))})})]})),f.jsx("div",{className:Ve("linha-total flex items-center justify-between pt-space-10",p.variacoesVendas.length>0?"":"border-t border-solid border-t-cor-bordas"),children:f.jsx("h5",{className:"text-[13px] font-bold text-dark-400 dark:text-secondary-50"})})]}),f.jsx("div",{className:"total flex flex-col p-space-10",children:f.jsxs("div",{className:"linha-total flex items-center justify-between border-t border-solid border-t-cor-bordas pt-space-10",children:[f.jsx("h5",{className:"text-[13px] font-bold text-dark-400 dark:text-secondary-50",children:"Total"}),f.jsxs("div",{className:"flex flex-col",children:[Number(null==p?void 0:p.totalBoleto)>0&&[1,3].includes(Number(null==g?void 0:g.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"valor-final flex items-end justify-end gap-space-4",children:[f.jsx("span",{className:"valor text-[15px]",children:f.jsx("strong",{className:Ve("text-color-success-500",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==p?void 0:p.totalBoleto))})}),f.jsx("span",{className:"tipo-pagto text-xs text-cor-texto-secundario dark:text-secondary-200",children:"No Boleto"})]}),Number(null==p?void 0:p.totalPix)>0&&[4,5].includes(Number(null==g?void 0:g.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"valor-final flex items-end justify-end gap-space-4",children:[f.jsx("span",{className:"valor text-[15px]",children:f.jsx("strong",{className:Ve("text-color-success-500",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==p?void 0:p.totalPix))})}),f.jsx("span",{className:"tipo-pagto text-xs text-cor-texto-secundario dark:text-secondary-200",children:"No Pix"})]}),Number(null==p?void 0:p.totalParcelado)>0&&2==(null==g?void 0:g.formasDePagamentoPaginaProduto)&&f.jsxs("div",{className:"valor-final flex items-end justify-end gap-space-4",children:[f.jsx("span",{className:"valor text-[15px]",children:f.jsx("strong",{className:Ve("text-color-success-500",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:g.valoresSomenteLogado?"R$ XXX,XX":xa(Number(null==p?void 0:p.totalParcelado))})}),f.jsx("span",{className:"tipo-pagto text-xs text-cor-texto-secundario dark:text-secondary-200",children:"No Cartão"})]}),y&&Number(null==p?void 0:p.totalParcelado)>0&&f.jsx("div",{className:"valor-final flex items-end justify-end gap-space-4",children:f.jsx("span",{className:"valor text-[15px]",children:f.jsx("strong",{className:Ve("text-color-success-500",(null==g?void 0:g.valoresSomenteLogado)&&"blur-[3px]"),children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==p?void 0:p.totalParcelado))})})}),Number(null==p?void 0:p.valorParcelas)>0&&[2,3,5].includes(Number(null==g?void 0:g.formasDePagamentoPaginaProduto))&&f.jsx("div",{className:"valor-final card flex justify-end text-cor-texto-secundario dark:text-secondary-200",children:f.jsxs("span",{className:"flex items-center gap-space-4 text-xs",children:["Ou",f.jsxs("strong",{children:[null==p?void 0:p.qtdParcelas,"x"]}),"de",f.jsx("strong",{className:(null==g?void 0:g.valoresSomenteLogado)?"blur-[3px]":"",children:(null==g?void 0:g.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==p?void 0:p.valorParcelas))}),"no cartão"]})})]})]})}),!(null==g?void 0:g.valoresSomenteLogado)&&f.jsx("div",{className:"checkout p-space-10",children:f.jsx("a",{href:ya("checkout/cart"),title:(null==(i=null==b?void 0:b.textosPersonalizados)?void 0:i["header.cart.buyButton"])??"Finalizar compra",children:f.jsx("div",{className:"button button-darken button-medium min-h-[30px] min-w-[100px] bg-color-success-500 p-space-10 text-center text-[13px] font-bold uppercase text-white",children:(null==(n=null==b?void 0:b.textosPersonalizados)?void 0:n["header.cart.buyButton"])??"Finalizar compra"})})})]})]}):f.jsx("div",{className:"content-cart rounded-b-md bg-white px-space-10 pb-space-10 dark:bg-dark-600",children:f.jsx("div",{className:"empty-cart px-space-10 py-space-20 text-center text-[13px] text-black dark:text-secondary-100",children:(null==(l=null==b?void 0:b.textosPersonalizados)?void 0:l["header.cart.empty"])??"Seu carrinho está vazio"})})]})]})})}function Za({opened:e,children:t,openDirection:a="left"}){const{isDesktop:o}=F(e=>({isDesktop:e.isDesktop}));return f.jsx("div",{className:Ve(o()?"w-[60%]":"w-full","flex fixed z-[9999] transition-transform duration-500 top-0","left"===a?"left-0":"right-0",e?"translate-x-[0]":"left"===a?"-translate-x-[100%]":"translate-x-[100%]"),children:t&&t})}function Ha({children:e}){const{isDesktop:t}=F(e=>({isDesktop:e.isDesktop}));return f.jsx("div",{className:Ve("border-t border-solid border-secondary-100",t()?"px-space-40 py-space-24":"p-space-8"),children:e})}function Ea({children:e,onCloseBaseHeader:t}){const{isDesktop:a}=F(e=>({isDesktop:e.isDesktop})),{getResourceFromS3:o,zordHintLoading:r}=$(e=>({getResourceFromS3:e.getResourceFromS3,zordHintLoading:e.zordHintLoading}));return f.jsxs("div",{className:Ve(a()?"px-space-40 py-space-24":"z-10 px-space-16 py-space-20","flex items-center justify-between border-b border-solid border-secondary-100"),children:[e,f.jsxs("div",{className:"gap-space-8 px-space-12 dark:bg-dark-800 dark:text-secondary-200 py-space-8 text-error-700 hover:border-error-700 group flex size-fit cursor-pointer items-center rounded-md border border-solid border-transparent bg-white text-sm transition-all",onClick:t,children:[f.jsx("img",{src:D()?o("assets/global/header/react-project","icon-x.svg"):r(),"data-src":o("assets/global/header/react-project","icon-x.svg"),className:"lazyload lazyload-svg fill-error-700 dark:fill-secondary-200 !size-[20px] transition-transform duration-300 group-hover:rotate-90",alt:"Fechar",draggable:!1}),f.jsx("span",{children:"Fechar"})]})]})}globalThis&&globalThis.__rest,ha({slots:{titleColor:"text-base leading-7 text-secondary-900",messageColor:"text-sm leading-6 text-secondary-700",className:"!p-space-16",progressClassName:"!opacity-100",button:"self-center",icon:"flex items-center justify-center text-white"},variants:{type:{success:{progressClassName:"!bg-success-700",icon:"text-success-700"},error:{progressClassName:"!bg-error-700",icon:"text-error-700"},warning:{progressClassName:"!bg-warning-500",icon:"text-warning-500",button:"border-none bg-warning-500 text-secondary-900 hover:bg-warning-600 active:bg-warning-700"},info:{progressClassName:"!bg-primary-600",icon:"text-primary-600"}}}}),ha({slots:{titleColor:"text-base font-normal leading-7",messageColor:"text-sm leading-6",className:"!p-space-16",progressClassName:"!bg-white !opacity-100",icon:"flex items-center justify-center text-white",button:"self-center"},variants:{type:{success:{titleColor:"text-success-50",messageColor:"text-success-100",className:"!bg-success-700",button:"border-0 bg-white text-success-700 hover:bg-success-50 active:bg-success-100"},error:{titleColor:"text-error-50",messageColor:"text-error-100",className:"!bg-error-700",button:"border-0 bg-white text-error-700 hover:bg-error-50 active:bg-error-100"},warning:{titleColor:"text-warning-1000",messageColor:"text-warning-900",className:"!bg-warning-500",button:"border-none bg-white text-secondary-900 hover:bg-warning-50 active:bg-warning-100"},info:{titleColor:"text-primary-50",messageColor:"text-primary-100",className:"!bg-primary-600",button:"bg-white text-primary-700 hover:bg-primary-50 active:bg-primary-100"}}}}),f.jsx(We,{size:28}),f.jsx(Ye,{size:28}),f.jsx(at,{size:28}),f.jsx(Qe,{size:28});const Ra=q()((e,t)=>({midiaSize:"",getMidiaTamanho:e=>e?"?"+t().midiaSize:"",getMidiaUrl:(e,a,o)=>$.getState().hostImagem+"/"+e+a+t().getMidiaTamanho(o)}));function Va({item:e,width:t,height:a,useLazyLoad:o=!0}){const{getMidiaUrl:r}=Ra(e=>({getMidiaUrl:e.getMidiaUrl})),{midia_tipo_file:s,midia_path:i,midia_arquivo_nome:n}=e;function l(e,t,a){let o="";return 1==e||4==e&&t&&a&&a.endsWith(".gif")?o=r(t,a,!0):(2==e||3==e)&&t&&a&&(t.endsWith(".mp4")||a.endsWith(".mp4"))&&(o=2==e&&t.endsWith(".mp4")?r(t,""):r(t,a)),o}return f.jsx("figure",{className:"relative flex min-w-full items-center justify-center overflow-hidden",children:1==Number(s)||4==Number(s)&&n&&n.endsWith(".gif")&&i&&n?f.jsx("img",{src:function(e,r,s){const i=l(e,r,s);return o?D()?i:`data:image/svg+xml,%3Csvg width='${t??290}' height='${a??435}' viewBox='0 0 ${t??290} ${a??435}' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3C/svg%3E`:i}(Number(s),i,n),"data-src":l(Number(s),i,n),width:t??290,height:a??435,id:"product-img",className:Ve(o&&"lazyload","object-contain !transition-all !duration-500"),style:{height:a&&`${a}px`,maxHeight:a&&`${a}px`}}):(2==Number(s)||3==Number(s))&&i&&n&&((null==i?void 0:i.endsWith(".mp4"))||(null==n?void 0:n.endsWith(".mp4")))&&f.jsx("video",{width:"100%",height:"100%",className:"object-contain",muted:!0,loop:!0,playsInline:!0,autoPlay:!0,style:{aspectRatio:`${t}/${a}`},children:f.jsx("source",{src:r(i,i&&n?n:""),type:"video/mp4"})})})}function Ia({openCart:t,clickOpenCart:a}){var o,r,s,i,n;const[l,c]=e.useState(!1),{lojaConfiguracaoSite:d,getResourceFromS3:u,lojaConfiguracaoLayout:m,zordHintLoading:p}=$(e=>({lojaConfiguracaoSite:e.lojaConfiguracaoSite,lojaConfiguracaoLayout:e.lojaConfiguracaoLayout,getResourceFromS3:e.getResourceFromS3,zordHintLoading:e.zordHintLoading})),{itens:h,loading:x,totalItens:v,atualizaPreview:g,carrinhoLength:b,removeItemCart:y}=G(e=>({itens:e.itens,loading:e.loading,totalItens:e.totalItens,atualizaPreview:e.atualizaPreview,carrinhoLength:e.carrinhoLength,removeItemCart:e.removeItemCart})),{isDesktop:j}=F(e=>({isDesktop:e.isDesktop}));e.useEffect(()=>{(async()=>{if(t&&!l)try{g(),c(!0)}catch(e){console.error("Erro ao realizar a requisição: "+e)}})()},[t,l,g]);const w=!(Number(null==v?void 0:v.totalBoleto)>0||Number(null==v?void 0:v.totalPix)>0||Number(null==v?void 0:v.valorParcelas)>0),N=Number(null==v?void 0:v.totalBoleto)>0&&1==Number(null==d?void 0:d.precoPrincipal),_=Number(null==v?void 0:v.totalPix)>0&&4==Number(null==d?void 0:d.precoPrincipal),k=Number(null==v?void 0:v.valorParcelas)>0&&2==Number(null==d?void 0:d.precoPrincipal),C=k&&Number(null==v?void 0:v.totalParcelado)>0,L=k&&!(Number(null==v?void 0:v.totalParcelado)>0),z=w&&Number(null==v?void 0:v.totalParcelado)>0;return f.jsx(Za,{opened:t,openDirection:"right",children:f.jsxs("div",{className:"relative z-[10] flex h-screen w-full flex-col bg-white shadow-overlay dark:bg-dark-400",children:[f.jsx(Ea,{onCloseBaseHeader:a,children:f.jsxs(Fe,{variant:"ghost",className:"gap-space-8 text-secondary-700 hover:text-secondary-700 hover:shadow-overlayBlended active:bg-white active:text-secondary-900 active:shadow-raisedBlended dark:bg-dark-800 dark:text-secondary-200",onClick:a,children:[f.jsx("img",{src:D()?u("assets/global/header/react-project","icon-bag.svg"):p(),"data-src":u("assets/global/header/react-project","icon-bag.svg"),className:"lazyload lazyload-svg !!size-[20px] fill-secondary-700 group-hover:fill-secondary-700 dark:fill-secondary-200",alt:"Sacola de compras",draggable:!1}),f.jsx("span",{className:"text-sm leading-none",children:(null==(o=null==m?void 0:m.textosPersonalizados)?void 0:o["header.cart.title"])??"Meu carrinho"})]})}),x&&b>0?f.jsx("div",{className:"flex size-full items-center justify-center text-center",children:f.jsx("div",{className:"size-10 animate-spin rounded-full border-2 border-secondary-200 border-t-secondary-500"})}):h&&h.length>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:Ve("content-cart flex h-full flex-col gap-space-16 overflow-y-auto bg-secondary-50 dark:bg-dark-600",j()?"px-space-40 py-space-24":"p-space-8"),children:h.map((e,t)=>f.jsxs("div",{id:e.carrinho_item_id.toString(),"data-valor":"promocaoBrinde"in e.info||(null==d?void 0:d.valoresSomenteLogado)?"":e.valor_total_item,"data-item-id":e.codigo_pai,"data-item-name":e.nome,"data-item-brand":e.marca,"data-item-category":e.categoria,"data-item-variant":e.derivacao_nome,"data-item-price":"promocaoBrinde"in e.info||(null==d?void 0:d.valoresSomenteLogado)?"":e.valor,"data-item-quantity":e.quantidade,"data-item-deposito":e.deposito,"data-name":e.nome,className:Ve("cart-item flex items-center rounded-lg bg-white dark:bg-dark-800 p-space-16",j()?"gap-space-16":"gap-space-8","promocaoBrinde"in e.info?"order-last bg-warning-50":""),children:[f.jsxs("div",{className:Ve("flex items-center gap-space-16",j()?"w-[70%]":"w-full col-span-2"),children:[f.jsx("div",{className:Ve("prod-img",j()?"size-[112px] min-h-[112px]":"size-[80px]"),children:f.jsx(Va,{item:e,width:j()?"112":"80",height:j()?"112":"80",useLazyLoad:!1})}),f.jsxs("div",{className:Ve("flex flex-col",j()?"gap-space-16":"gap-space-8 flex-1"),children:[f.jsx("span",{className:Ve("prod-nome text-secondary-900 dark:text-secondary-50",!j()&&"text-xs font-bold"),children:e.nome}),e.derivacoes_produto&&e.variacoes_produto&&f.jsx("div",{className:Ve("derivacao flex",j()?"items-center gap-space-4":"flex-col"),children:e.derivacoes_produto.map((t,a)=>f.jsxs("div",{className:Ve("flex min-w-[110px] gap-space-4 text-secondary-700 dark:text-secondary-200",j()?"text-xs":"text-[10px]"),children:[f.jsxs("span",{className:"deriva-nome",children:[e.variacoes_produto[a].nome,":"]}),f.jsx("span",{className:"deriva-item",children:t.derivacao})]},a))}),!j()&&f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{className:Ve("qtd-value flex justify-center gap-space-4 text-sm text-secondary-700 dark:text-secondary-200",j()?"w-[125px] flex-col":"w-fit items-center"),children:[f.jsxs("span",{children:["Qtde: ",e.quantidade]}),f.jsx("span",{className:"cart-remove-item cursor-pointer gap-space-8 text-xs text-error-700","data-id":e.carrinho_item_id.toString(),onClick:()=>y(e.carrinho_item_id.toString()),title:"Remover item do carrinho",children:j()?f.jsx("span",{children:"Remover"}):f.jsx("img",{src:D()?u("assets/global/header/react-project","icon-trash-simple.svg"):p(),"data-src":u("assets/global/header/react-project","icon-trash-simple.svg"),className:"lazyload lazyload-svg !size-[16px] fill-error-700",alt:"Remover",draggable:!1})})]}),"promocaoBrinde"in e.info?f.jsx("div",{className:"flex",children:f.jsxs("span",{className:"mt-space-4 flex gap-space-4 rounded-full bg-warning-100 px-2 py-1 text-xs text-warning-1000",children:[f.jsx("span",{className:"icon text-lg leading-4",children:"✩"}),"Brinde"]})}):f.jsx("div",{className:"valor flex min-w-[65px] flex-1 justify-end text-success-700",children:f.jsx("span",{className:Ve("font-bold",(null==d?void 0:d.valoresSomenteLogado)&&"blur-[3px]"),children:(null==d?void 0:d.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(e.valor))})})]})]})]}),j()&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:Ve("qtd-value flex justify-center gap-space-4 text-sm text-secondary-700 dark:text-secondary-200",j()?"w-[125px] flex-col":"w-fit items-center"),children:[f.jsxs("span",{children:["Qtde: ",e.quantidade]}),f.jsx("span",{className:"cart-remove-item cursor-pointer gap-space-8 text-xs text-error-700","data-id":e.carrinho_item_id.toString(),onClick:()=>y(e.carrinho_item_id.toString()),title:"Remover item do carrinho",children:j()?f.jsx("span",{children:"Remover"}):f.jsx("img",{src:D()?u("assets/global/header/react-project","icon-trash-simple.svg"):p(),"data-src":u("assets/global/header/react-project","icon-trash-simple.svg"),className:"lazyload lazyload-svg !size-[16px] fill-error-700",alt:"Remover",draggable:!1})})]}),"promocaoBrinde"in e.info?f.jsx("div",{className:"flex",children:f.jsxs("span",{className:"mt-space-4 flex gap-space-4 rounded-full bg-warning-100 px-2 py-1 text-xs text-warning-1000",children:[f.jsx("span",{className:"icon text-lg leading-4",children:"✩"}),"Brinde"]})}):f.jsx("div",{className:"valor flex min-w-[65px] flex-1 justify-end text-success-700",children:f.jsx("span",{className:Ve("font-bold",(null==d?void 0:d.valoresSomenteLogado)&&"blur-[3px]"),children:(null==d?void 0:d.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(e.valor))})})]})]},t))}),f.jsxs(Ha,{children:[null==(r=null==v?void 0:v.variacoesVendas)?void 0:r.map(e=>f.jsxs("div",{className:"variacao-venda mb-2 flex justify-between text-sm text-secondary-700",children:[f.jsx("div",{className:"label-content",children:e.descricao}),f.jsx("div",{className:"value-content",children:2===e.tipoVariacao?(null==d?void 0:d.valoresSomenteLogado)?f.jsxs("span",{className:"value discount-value preco-escondido text-error-500",children:["- R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsxs("div",{className:"value discount-value text-error-500",children:["- ",xa(Number(e.valorAplicado))]}):(null==d?void 0:d.valoresSomenteLogado)?f.jsxs("span",{className:"value preco-escondido",children:["R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsx("div",{className:"value",children:xa(Number(e.valorAplicado))})})]})),f.jsxs("div",{className:Ve("flex",j()?"items-center justify-between":"flex-col gap-space-8"),children:[f.jsxs("div",{className:"flex flex-col gap-space-4",children:[f.jsx("span",{className:Ve("title boleto text-sm text-secondary-400 dark:text-secondary-100",L&&"hidden"),children:"Valor total"}),N&&f.jsx("div",{className:"formas forma-boleto",children:f.jsxs("span",{className:"valor valor-boleto font-bold text-secondary-900 dark:text-secondary-50",children:[f.jsx("span",{className:(null==d?void 0:d.valoresSomenteLogado)?"blur-[3px]":"",children:(null==d?void 0:d.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==v?void 0:v.totalBoleto))})," no Boleto"]})}),_&&f.jsx("div",{className:"formas forma-pix",children:f.jsxs("span",{className:"valor valor-pix font-bold text-secondary-900 dark:text-secondary-50",children:[f.jsx("span",{className:(null==d?void 0:d.valoresSomenteLogado)?"blur-[3px]":"",children:(null==d?void 0:d.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==v?void 0:v.totalPix))})," no PIX"]})}),C&&f.jsx("div",{className:"formas forma-cartao",children:f.jsxs("span",{className:"valor valor-card text-secondary-900 dark:text-secondary-50",children:[f.jsxs("div",{className:"text-base font-bold "+((null==d?void 0:d.valoresSomenteLogado)?"blur-[3px]":""),children:[(null==d?void 0:d.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==v?void 0:v.totalParcelado)),f.jsx("span",{className:"px-space-4 text-sm",children:"no Cartão"})]}),f.jsxs("div",{className:"text-sm text-secondary-600",children:[f.jsxs("span",{className:"text-sm",children:["ou ",null==v?void 0:v.qtdParcelas,"x de "]}),f.jsx("span",{className:(null==d?void 0:d.valoresSomenteLogado)?"blur-[3px]":"",children:(null==d?void 0:d.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==v?void 0:v.valorParcelas))})]})]})}),L&&f.jsxs("div",{className:"text-secondary-600",children:[f.jsxs("span",{className:"text-base font-bold text-success-600",children:[null==v?void 0:v.qtdParcelas,"x"]}),f.jsx("span",{children:" de "}),f.jsx("span",{className:(null==d?void 0:d.valoresSomenteLogado)?"blur-[3px]":"text-base font-bold text-success-600",children:(null==d?void 0:d.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==v?void 0:v.valorParcelas))}),f.jsx("span",{children:" no cartão"})]}),z&&f.jsx("div",{className:"formas forma-default",children:f.jsx("span",{className:"valor valor-default font-bold text-secondary-900 dark:text-secondary-50",children:f.jsx("span",{className:(null==d?void 0:d.valoresSomenteLogado)?"blur-[3px]":"",children:(null==d?void 0:d.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==v?void 0:v.totalParcelado))})})})]}),!(null==d?void 0:d.valoresSomenteLogado)&&f.jsx("a",{href:ya("checkout/cart"),title:(null==(s=null==m?void 0:m.textosPersonalizados)?void 0:s["header.cart.buyButton"])??"Finalizar compra",className:"finalizar-compra flex min-w-[180px] items-center justify-center gap-4 rounded-full bg-cor-base p-2 text-white",children:f.jsx("span",{children:(null==(i=null==m?void 0:m.textosPersonalizados)?void 0:i["header.cart.buyButton"])??"Finalizar compra"})})]})]})]}):f.jsx("div",{className:"content-cart flex h-full items-center justify-center",children:f.jsxs("span",{className:"box-empty-cart flex flex-col items-center justify-center gap-6",children:[f.jsx("span",{className:"icon-sad",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"140",height:"106",viewBox:"0 0 140 106",fill:"none",children:f.jsxs("g",{children:[f.jsx("path",{d:"M10.8943 97.0327C14.1468 103.065 21.0492 105.655 21.0492 105.655C21.0492 105.655 22.6789 98.4638 19.4265 92.4312C16.1743 86.3986 9.27163 83.8088 9.27163 83.8088C9.27163 83.8088 7.64213 91.0001 10.8943 97.0327Z",fill:"#A0ABB5"}),f.jsx("path",{d:"M13.1304 95.048C19.0021 98.5813 21.2635 105.599 21.2635 105.599C21.2635 105.599 14.005 106.889 8.13308 103.355C2.26146 99.8221 0 92.8042 0 92.8042C0 92.8042 7.25854 91.5146 13.1304 95.048Z",fill:"#122D47"}),f.jsx("path",{d:"M129.106 97.0327C125.853 103.065 118.951 105.655 118.951 105.655C118.951 105.655 117.321 98.4638 120.573 92.4312C123.826 86.3986 130.728 83.8088 130.728 83.8088C130.728 83.8088 132.358 91.0001 129.106 97.0327Z",fill:"#A0ABB5"}),f.jsx("path",{d:"M126.87 95.048C120.998 98.5813 118.736 105.599 118.736 105.599C118.736 105.599 125.995 106.889 131.867 103.355C137.739 99.8221 140 92.8042 140 92.8042C140 92.8042 132.741 91.5146 126.87 95.048Z",fill:"#122D47"}),f.jsx("path",{d:"M94.7444 94.2704H32.7817V93.8246H94.2985V72.2006H37.9908L35.2554 66.501L35.6574 66.3081L38.2713 71.7547H94.7444V94.2704ZM41.0289 105.194C43.6141 105.194 45.7096 103.098 45.7096 100.512C45.7096 97.927 43.6141 95.8308 41.0289 95.8308C38.444 95.8308 36.3482 97.927 36.3482 100.512C36.3482 103.098 38.444 105.194 41.0289 105.194ZM87.1669 105.194C89.7518 105.194 91.8474 103.098 91.8474 100.512C91.8474 97.927 89.7518 95.8308 87.1669 95.8308C84.5817 95.8308 82.4862 97.927 82.4862 100.512C82.4862 103.098 84.5817 105.194 87.1669 105.194ZM101.372 64.844H31.7256L16.6556 15.5773H116.892L116.8 15.867L101.372 64.844ZM32.0553 64.3982H101.045L116.284 16.023H17.2582L32.0553 64.3982Z",fill:"#718191"}),f.jsx("path",{d:"M95.9358 62.2804H34.7629L21.5265 18.5867H109.567L109.487 18.8439L95.9358 62.2804Z",fill:"#F2F2F2"}),f.jsx("path",{d:"M118.14 11.1758L117.709 11.0614L120.65 -0.027771H137.762V0.418217H120.993L118.14 11.1758ZM111.883 30.5133H21.5255V30.959H111.883V30.5133ZM106.708 46.9394H26.5495V47.3851H106.708V46.9394Z",fill:"#718191"}),f.jsx("path",{d:"M66.9948 15.8003H66.5489V64.6213H66.9948V15.8003ZM86.9536 15.7862L83.7537 64.6058L84.1986 64.6352L87.3985 15.8152L86.9536 15.7862ZM46.6001 15.7856L46.1552 15.8147L49.3365 64.6357L49.7814 64.6066L46.6001 15.7856ZM139.738 105.477H0V106H139.738V105.477Z",fill:"#718191"})]})})}),f.jsx("span",{className:"empty-cart text-secondary-500 dark:text-secondary-200",children:(null==(n=null==m?void 0:m.textosPersonalizados)?void 0:n["header.cart.empty"])??"Seu carrinho está vazio"})]})})]})})}function Ba({openCart:t,clickOpenCart:a}){var o,r,s,i,n,l;const[c,d]=e.useState(!1),{lojaConfiguracaoSite:u,lojaConfiguracaoLayout:m,getResourceFromS3:p,zordHintLoading:h}=$(e=>({lojaConfiguracaoSite:e.lojaConfiguracaoSite,lojaConfiguracaoLayout:e.lojaConfiguracaoLayout,getResourceFromS3:e.getResourceFromS3,zordHintLoading:e.zordHintLoading})),{itens:x,totalItens:v,loading:g,atualizaPreview:b,carrinhoLength:y,removeItemCart:j}=G(e=>({itens:e.itens,totalItens:e.totalItens,loading:e.loading,atualizaPreview:e.atualizaPreview,carrinhoLength:e.carrinhoLength,removeItemCart:e.removeItemCart}));e.useEffect(()=>{(async()=>{if(t&&!c)try{b(),d(!0)}catch(e){console.error("Erro ao realizar a requisição: "+e)}})()},[t,c,b]);const w=!(Number(null==v?void 0:v.totalBoleto)>0||Number(null==v?void 0:v.totalPix)>0||Number(null==v?void 0:v.valorParcelas)>0),N=100==(null==m?void 0:m.templateHeader);return f.jsx("div",{className:Ve("carrinho-rapido-ctn open-cart visible fixed inset-y-0 right-0 z-[20] h-full w-[430px] overflow-hidden transition-transform duration-500 ",t?"translate-x-[0]":"translate-x-[110%]",N?"backdrop-blur h-[100vh] bg-gradient-to-t from-[#16181B] to-[#16181B]/70":"dark:bg-dark-600 bg-white"),children:g&&y>0?f.jsx("div",{className:"flex size-full items-center justify-center bg-cor-base text-center",children:f.jsx("div",{className:"size-10 animate-spin rounded-full border-2 border-solid border-secondary-200 border-t-secondary-500"})}):f.jsxs("div",{className:"carrinho-rapido relative flex h-full flex-col",children:[f.jsx("div",{className:Ve("top-carrinho flex flex-col p-space-20",N?"bg-[#16181B]":"bg-cor-base"),onClick:a,children:f.jsxs("div",{className:"meu-carrinho space-between center flex justify-between",children:[f.jsxs("a",{className:"font-semibold uppercase text-white",href:ya("/checkout/cart"),title:(null==(o=null==m?void 0:m.textosPersonalizados)?void 0:o["header.cart.title"])??"Meu carrinho",children:[(null==(r=null==m?void 0:m.textosPersonalizados)?void 0:r["header.cart.title"])??"Meu carrinho",N&&` (${y??0})`]}),f.jsx("span",{className:"icon-arrow-bottom flex items-center text-white",children:f.jsx("img",{src:D()?p("assets/global/header/react-project","icon-x.svg"):h(),"data-src":p("assets/global/header/react-project","icon-x.svg"),className:"lazyload lazyload-svg !size-[20px] cursor-pointer fill-white transition-transform duration-300 group-hover:rotate-90",alt:"Fechar",draggable:!1})})]})}),x&&x.length>0?f.jsxs("div",{className:"content-cart",children:[f.jsx("div",{className:"cart-items left-0 top-[65px] !m-0 flex max-h-[calc(100vh-315px)] !min-h-[calc(100%-230px)] w-full flex-col overflow-y-auto py-space-8",children:x.map((e,t)=>f.jsxs("div",{id:e.carrinho_item_id.toString(),"data-valor":"promocaoBrinde"in e.info||(null==u?void 0:u.valoresSomenteLogado)?"":e.valor_total_item,"data-item-id":e.codigo_pai,"data-item-name":e.nome,"data-item-brand":e.marca,"data-item-category":e.categoria,"data-item-variant":e.derivacao_nome,"data-item-price":"promocaoBrinde"in e.info||(null==u?void 0:u.valoresSomenteLogado)?"":e.valor,"data-item-quantity":e.quantidade,"data-item-deposito":e.deposito,"data-name":e.nome,className:Ve("cart-item relative mx-space-16 my-space-4 flex h-fit min-h-[115px] items-center justify-between gap-space-4 overflow-hidden rounded-md pl-space-12 ","promocaoBrinde"in e.info?"order-last bg-warning-50":"",N?"bg-black border border-solid border-[#383D42]":"shadow-[0px_0px_10px_5px_#d7dce0] dark:bg-dark-800 dark:shadow-[0px_0px_10px_5px_#494a4b]"),children:[f.jsxs("div",{className:"flex w-full items-center",children:[f.jsx("div",{className:"prod-img mr-2 size-[70px] overflow-hidden rounded-sm border-[1px] border-secondary-100",children:f.jsx("a",{title:e.nome,href:e.link?e.link:e.link_pai,children:e.midia_tipo_file&&("2"===e.midia_tipo_file||"3"===e.midia_tipo_file)&&(e.midia_path&&e.midia_path.endsWith(".mp4")||e.midia_arquivo_nome&&e.midia_arquivo_nome.endsWith(".mp4"))?f.jsx("video",{width:"65",style:{height:"auto"},autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:f.jsx("source",{src:e.midia_path.endsWith(".mp4")?e.midia_path:Na(e.midia_path,e.midia_arquivo_nome),type:"video/mp4"})}):f.jsx("img",{id:"product-img",src:Na(e.midia_path,e.midia_arquivo_nome,"small"),alt:e.midia_alt?e.midia_alt:e.nome,title:e.midia_alt?e.midia_alt:e.nome})})}),f.jsxs("div",{className:"prod-info w-full max-w-[230px] text-sm text-secondary-700 dark:text-secondary-200",children:[f.jsx("div",{className:"prod-nome truncate",children:f.jsx("a",{className:"font-semibold leading-5 text-cor-base dark:text-secondary-50",title:e.nome,href:e.link?e.link:e.link_pai,children:e.nome})}),e.derivacoes_produto&&e.variacoes_produto?e.derivacoes_produto.map((t,a)=>f.jsxs("div",{className:"derivacao flex w-full gap-space-4 text-xs",children:[f.jsxs("span",{className:"deriva-nome",children:[e.variacoes_produto[a].nome,":"]}),f.jsx("span",{className:"deriva-item",children:t.derivacao})]},a)):null,"promocaoBrinde"in e.info?f.jsx("div",{className:"flex",children:f.jsxs("span",{className:"mt-space-4 flex gap-space-4 rounded-full bg-warning-100 px-2 py-1 text-xs text-warning-1000",children:[f.jsx("span",{className:"icon text-lg leading-4",children:"✩"}),"Brinde"]})}):f.jsxs("div",{className:"qtd-value mt-space-4 flex w-full justify-between",children:[f.jsxs("span",{className:"quantidade flex gap-space-4 text-xs",children:["Qtde:",f.jsx("span",{className:"flex size-space-20 items-center justify-center rounded-full border border-solid border-secondary-100 font-semibold",children:e.quantidade})]}),f.jsx("span",{className:Ve("valor text-[15px] font-bold",(null==u?void 0:u.valoresSomenteLogado)&&"blur-[3px]"),children:(null==u?void 0:u.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(e.valor))})]})]})]}),f.jsx("div",{className:"prod-remove group flex min-h-[inherit] cursor-pointer items-center justify-center text-[#e44b4b] transition-all hover:bg-cor-base-light hover:text-white dark:hover:text-secondary-1000",onClick:()=>j(e.carrinho_item_id.toString()),children:f.jsx("span",{className:"cart-remove-item h-full px-space-12",title:"Remover item do carrinho","data-id":e.carrinho_item_id.toString(),children:f.jsx("img",{src:D()?p("assets/global/header/react-project","icon-trash.svg"):h(),"data-src":p("assets/global/header/react-project","icon-trash.svg"),className:"lazyload lazyload-svg !size-[20px] cursor-pointer fill-[#e44b4b] group-hover:fill-white",alt:"Remover",draggable:!1})})})]},t))}),f.jsxs("div",{className:"area-finalizar-compra absolute inset-x-0 bottom-0 flex min-h-[120px] flex-col justify-between gap-2 bg-secondary-50 p-4 dark:bg-dark-800",children:[null==(s=null==v?void 0:v.variacoesVendas)?void 0:s.map(e=>f.jsxs("div",{className:"variacao-venda mb-2 flex justify-between text-sm text-secondary-700",children:[f.jsx("div",{className:"label-content",children:e.descricao}),f.jsx("div",{className:"value-content",children:2===e.tipoVariacao?(null==u?void 0:u.valoresSomenteLogado)?f.jsxs("span",{className:"value discount-value preco-escondido text-error-500",children:["- R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsxs("div",{className:"value discount-value text-error-500",children:["- ",xa(Number(e.valorAplicado))]}):(null==u?void 0:u.valoresSomenteLogado)?f.jsxs("span",{className:"value preco-escondido",children:["R$ ",f.jsx("span",{className:"valor-escondido",children:"XXXXX"})]}):f.jsx("div",{className:"value",children:xa(Number(e.valorAplicado))})})]})),f.jsxs("div",{className:"flex flex-col divide-y-[1px] divide-[#dddddd] text-sm text-secondary-700 dark:text-secondary-200",children:[Number(null==v?void 0:v.totalBoleto)>0&&[1,3].includes(Number(null==u?void 0:u.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"formas forma-boleto flex items-center justify-between py-2",children:[f.jsxs("div",{className:"boleto flex items-center gap-2",children:[f.jsx("span",{className:"icon icon-boleto size-5",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fillRule:"evenodd",clipRule:"evenodd",viewBox:"0 0 203 138",children:f.jsx("path",{d:"M0 138h9V0H0v138zm194 0h9V0h-9v138zm-19 0h10V0h-10v138zm-37 0h28V0h-28v138zm-27 0h18V0h-18v138zm-28 0h9V0h-9v138zm-28 0h19V0H55v138zm-36 0h27V0H19v138z",className:"dark:fill-secondary-200"})})}),f.jsx("span",{className:"tittle boleto",children:"Boleto"})]}),f.jsx("span",{className:Ve("valor valor-pix text-base font-bold text-success-600",(null==u?void 0:u.valoresSomenteLogado)&&"blur-[3px]"),children:(null==u?void 0:u.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==v?void 0:v.totalBoleto))})]}),Number(null==v?void 0:v.totalPix)>0&&[4,5].includes(Number(null==u?void 0:u.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"formas forma-pix flex items-center justify-between py-2",children:[f.jsxs("div",{className:"pix flex items-center gap-2",children:[f.jsx("span",{className:"icon icon-pix size-5",children:f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 21 20",children:[f.jsx("path",{d:"M15.597 15.822a2.92 2.92 0 0 1-2.077-.86l-3-3a.57.57 0 0 0-.788 0L6.72 14.974a2.92 2.92 0 0 1-2.078.86h-.59l3.799 3.8a3.039 3.039 0 0 0 4.296 0l3.81-3.81h-.36ZM4.643 5.212a2.92 2.92 0 0 1 2.078.86l3.01 3.011a.559.559 0 0 0 .789 0l3-3a2.92 2.92 0 0 1 2.077-.86h.362l-3.81-3.81a3.038 3.038 0 0 0-4.297 0l-3.8 3.799h.591Z",fill:"#32BCAD"}),f.jsx("path",{d:"m19.11 8.374-2.302-2.302a.438.438 0 0 1-.164.033h-1.047c-.541 0-1.07.22-1.453.602l-3 3c-.28.28-.65.42-1.018.42-.369 0-.737-.14-1.018-.42L6.097 6.696a2.069 2.069 0 0 0-1.454-.602H3.356a.437.437 0 0 1-.154-.031L.89 8.374a3.038 3.038 0 0 0 0 4.297l2.31 2.312a.436.436 0 0 1 .155-.032h1.287c.542 0 1.071-.219 1.454-.602l3.01-3.01c.545-.544 1.493-.544 2.037 0l3 3a2.07 2.07 0 0 0 1.453.601h1.047a.44.44 0 0 1 .164.033l2.302-2.302a3.039 3.039 0 0 0 0-4.297Z",fill:"#32BCAD"})]})}),f.jsx("span",{className:"tittle pix",children:"PIX"})]}),f.jsx("span",{className:Ve("valor valor-pix text-base font-bold text-success-600",(null==u?void 0:u.valoresSomenteLogado)&&"blur-[3px]"),children:(null==u?void 0:u.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==v?void 0:v.totalPix))})]}),Number(null==v?void 0:v.valorParcelas)>0&&[2,3,5].includes(Number(null==u?void 0:u.formasDePagamentoPaginaProduto))&&f.jsxs("div",{className:"formas forma-cartao flex items-center justify-between py-2",children:[f.jsxs("div",{className:"cartao flex items-center gap-2",children:[f.jsx("span",{className:"icon icon-card size-5",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",fill:"none",viewBox:"0 0 32 32",children:f.jsx("path",{d:"M28 7H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM21 21h4M15 21h2M3 12.112h26",stroke:"#000",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"dark:fill-secondary-200"})})}),f.jsx("span",{className:"tittle card",children:"Cartão"})]}),f.jsx("span",{className:"valor valor-cartao",children:Number(null==v?void 0:v.totalParcelado)>0?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"flex justify-end text-base font-bold text-success-600 "+((null==u?void 0:u.valoresSomenteLogado)?"blur-[3px]":""),children:(null==u?void 0:u.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==v?void 0:v.totalParcelado))}),f.jsxs("div",{className:"text-xs",children:[f.jsxs("span",{className:"text-sm",children:[null==v?void 0:v.qtdParcelas,"x de "]}),f.jsx("span",{className:(null==u?void 0:u.valoresSomenteLogado)?"blur-[3px]":"",children:(null==u?void 0:u.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==v?void 0:v.valorParcelas))})]})]}):f.jsxs("div",{children:[f.jsxs("span",{className:"text-base font-bold text-success-600",children:[null==v?void 0:v.qtdParcelas,"x"]}),f.jsx("span",{children:" de "}),f.jsx("span",{className:(null==u?void 0:u.valoresSomenteLogado)?"blur-[3px]":"text-base font-bold text-success-600",children:(null==u?void 0:u.valoresSomenteLogado)?"R$ XX,XX":xa(Number(null==v?void 0:v.valorParcelas))})]})})]}),w&&Number(null==v?void 0:v.totalParcelado)>0&&f.jsxs("div",{className:"formas forma-default flex items-center justify-between py-2",children:[f.jsx("span",{className:"title text-lg font-semibold text-secondary-600 dark:text-secondary-100",children:"Total"}),f.jsx("span",{className:Ve("valor valor-pix text-base font-bold text-success-600",(null==u?void 0:u.valoresSomenteLogado)&&"blur-[3px]"),children:(null==u?void 0:u.valoresSomenteLogado)?"R$ XXX,XX":xa(Number(null==v?void 0:v.totalParcelado))})]})]}),!(null==u?void 0:u.valoresSomenteLogado)&&f.jsx("a",{href:ya("checkout/cart"),title:(null==(i=null==m?void 0:m.textosPersonalizados)?void 0:i["header.cart.buyButton"])??"Finalizar compra",children:f.jsxs("button",{className:Ve("finalizar-compra flex w-full items-center justify-center gap-4 rounded-md p-2 font-semibold uppercase ",N?"bg-cor-primaria text-black":"bg-cor-base text-white"),children:[f.jsx("span",{children:(null==(n=null==m?void 0:m.textosPersonalizados)?void 0:n["header.cart.buyButton"])??"Finalizar compra"}),f.jsx("span",{className:"icon-arrow-right flex",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"11",fill:"none",viewBox:"0 0 21 11",children:f.jsx("g",{children:f.jsx("path",{d:"M14.7.688a.686.686 0 0 0-.207.488.676.676 0 0 0 .207.488l3.22 3.162H1.442a.707.707 0 0 0-.495.202.681.681 0 0 0 0 .972c.131.13.31.201.495.201h16.464L14.7 9.343a.681.681 0 0 0 .494 1.17.707.707 0 0 0 .493-.2L20.14 5.94a.606.606 0 0 0 .19-.436.597.597 0 0 0-.19-.437L15.694.687a.701.701 0 0 0-.497-.203.711.711 0 0 0-.497.204Z",fill:N?"#000":"#fff"})})})})]})})]})]}):f.jsx("div",{className:"content-cart flex h-full items-center justify-center",children:f.jsxs("span",{className:"box-empty-cart !relative flex flex-col items-center justify-center gap-6",children:[f.jsx("span",{className:"icon-sad",children:f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"140",height:"106",viewBox:"0 0 140 106",fill:"none",children:f.jsxs("g",{children:[f.jsx("path",{d:"M10.8943 97.0327C14.1468 103.065 21.0492 105.655 21.0492 105.655C21.0492 105.655 22.6789 98.4638 19.4265 92.4312C16.1743 86.3986 9.27163 83.8088 9.27163 83.8088C9.27163 83.8088 7.64213 91.0001 10.8943 97.0327Z",fill:"#A0ABB5"}),f.jsx("path",{d:"M13.1304 95.048C19.0021 98.5813 21.2635 105.599 21.2635 105.599C21.2635 105.599 14.005 106.889 8.13308 103.355C2.26146 99.8221 0 92.8042 0 92.8042C0 92.8042 7.25854 91.5146 13.1304 95.048Z",fill:"#122D47"}),f.jsx("path",{d:"M129.106 97.0327C125.853 103.065 118.951 105.655 118.951 105.655C118.951 105.655 117.321 98.4638 120.573 92.4312C123.826 86.3986 130.728 83.8088 130.728 83.8088C130.728 83.8088 132.358 91.0001 129.106 97.0327Z",fill:"#A0ABB5"}),f.jsx("path",{d:"M126.87 95.048C120.998 98.5813 118.736 105.599 118.736 105.599C118.736 105.599 125.995 106.889 131.867 103.355C137.739 99.8221 140 92.8042 140 92.8042C140 92.8042 132.741 91.5146 126.87 95.048Z",fill:"#122D47"}),f.jsx("path",{d:"M94.7444 94.2704H32.7817V93.8246H94.2985V72.2006H37.9908L35.2554 66.501L35.6574 66.3081L38.2713 71.7547H94.7444V94.2704ZM41.0289 105.194C43.6141 105.194 45.7096 103.098 45.7096 100.512C45.7096 97.927 43.6141 95.8308 41.0289 95.8308C38.444 95.8308 36.3482 97.927 36.3482 100.512C36.3482 103.098 38.444 105.194 41.0289 105.194ZM87.1669 105.194C89.7518 105.194 91.8474 103.098 91.8474 100.512C91.8474 97.927 89.7518 95.8308 87.1669 95.8308C84.5817 95.8308 82.4862 97.927 82.4862 100.512C82.4862 103.098 84.5817 105.194 87.1669 105.194ZM101.372 64.844H31.7256L16.6556 15.5773H116.892L116.8 15.867L101.372 64.844ZM32.0553 64.3982H101.045L116.284 16.023H17.2582L32.0553 64.3982Z",fill:"#718191"}),f.jsx("path",{d:"M95.9358 62.2804H34.7629L21.5265 18.5867H109.567L109.487 18.8439L95.9358 62.2804Z",fill:"#F2F2F2"}),f.jsx("path",{d:"M118.14 11.1758L117.709 11.0614L120.65 -0.027771H137.762V0.418217H120.993L118.14 11.1758ZM111.883 30.5133H21.5255V30.959H111.883V30.5133ZM106.708 46.9394H26.5495V47.3851H106.708V46.9394Z",fill:"#718191"}),f.jsx("path",{d:"M66.9948 15.8003H66.5489V64.6213H66.9948V15.8003ZM86.9536 15.7862L83.7537 64.6058L84.1986 64.6352L87.3985 15.8152L86.9536 15.7862ZM46.6001 15.7856L46.1552 15.8147L49.3365 64.6357L49.7814 64.6066L46.6001 15.7856ZM139.738 105.477H0V106H139.738V105.477Z",fill:"#718191"})]})})}),f.jsx("span",{className:"empty-cart text-secondary-500",children:(null==(l=null==m?void 0:m.textosPersonalizados)?void 0:l["header.cart.empty"])??"Seu carrinho está vazio"})]})})]})})}function qa({customStyling:t,setOpen:a,children:o}){var r;const[s,i]=e.useState(!1),{lojaConfiguracaoLayout:n}=$(e=>({lojaConfiguracaoLayout:e.lojaConfiguracaoLayout})),{isDesktop:l}=F(e=>({isDesktop:e.isDesktop}));e.useEffect(()=>{D()?Pa():Zord.analytics.listenerEvent("getInfoUser",function(e){G.setState({carrinhoLength:(null==e?void 0:e.carrinhoLength)||0,usuario:null==e?void 0:e.usuario})})},[]),function(t){const{atualizaPreview:a}=G(e=>({atualizaPreview:e.atualizaPreview}));e.useEffect(()=>{const e=async()=>{await a(),t(!0)};return window.addEventListener("reactItemAddedToCart",e),()=>{window.removeEventListener("reactItemAddedToCart",e)}},[])}(i);const c=null==n?void 0:n.carrinhoRapidoLateral,d=null==n?void 0:n.carrinhoRapidoMobile;function u(e){i(e),a&&a(e)}return f.jsxs(f.Fragment,{children:[f.jsxs("div",{id:"cart-preview-area",className:Ve("carrinho-ctn relative z-[11]",null==t?void 0:t.div),...l()&&!c||!l()&&!d?{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)}:{},children:[f.jsx("a",{...l()&&c||!l()&&d?{onClick:e=>{u(!s),e.preventDefault()}}:{},href:ya("checkout/cart"),className:Ve("active link-cart z-[12] size-full flex items-center justify-center text-color-white",null==t?void 0:t.a),title:(null==(r=null==n?void 0:n.textosPersonalizados)?void 0:r["header.cart.title"])??"Meu carrinho",children:o}),l()?c?13==n.templateHeader?f.jsx(Ia,{openCart:s,clickOpenCart:()=>u(!s)}):f.jsx(Ba,{openCart:s,clickOpenCart:()=>u(!s)}):[12,25].includes((null==n?void 0:n.templateHeader)??0)?f.jsx(Ta,{openCart:s,customStyling:{div:null==t?void 0:t.carrinhoRapido}}):f.jsx(Ma,{openCart:s,customStyling:{div:null==t?void 0:t.carrinhoRapido}}):d?4==n.templateHeaderMobile||13==n.templateHeader&&null==n.templateHeaderMobile?f.jsx(Ia,{openCart:s,clickOpenCart:()=>u(!s)}):f.jsx(Xa,{openCart:s,clickOpenCart:()=>u(!s)}):null]}),l()||d?f.jsx(Aa,{active:s,className:Ve("z-[10] bg-black/40",null==t?void 0:t.overlay),onOverlayClick:()=>u(!1),...c?{onClick:()=>u(!1)}:{onMouseEnter:()=>u(!1)}}):null]})}function Fa({customStyling:e}){const{logo:t,confSite:a,lojaNome:o,lojaUrlAcesso:r}=$(e=>({logo:e.logo,confSite:e.lojaConfiguracaoSite,lojaNome:e.lojaNome,lojaUrlAcesso:e.lojaUrlAcesso})),s=function(e){if(null!==e)return{__html:e}}(function(e){if(null===e)return null;const t=atob(e);return decodeURIComponent(Array.from(t).map(e=>"%"+e.charCodeAt(0).toString(16).padStart(2,"0")).join(""))}(t)),i=("/"===window.location.pathname||"blog/blog-home"===window.location.pathname)&&!(null==a?void 0:a.removeH1Logo);return f.jsx(f.Fragment,{children:i?f.jsx("h1",{title:o,className:Ve("flex w-auto items-center justify-center",null==e?void 0:e.h1),children:f.jsx("a",{href:r,title:o,className:Ve("logo-preview h-auto max-w-[250px] [&>img]:h-auto [&>img]:w-full [&>svg]:h-auto [&>svg]:w-full",null==e?void 0:e.a),dangerouslySetInnerHTML:s})}):f.jsx("div",{className:Ve("flex w-auto",null==e?void 0:e.div),children:f.jsx("a",{href:r,title:o,className:Ve("logo-preview h-auto max-w-[250px] [&>img]:h-auto [&>img]:w-full [&>svg]:h-auto [&>svg]:w-full",null==e?void 0:e.a),dangerouslySetInnerHTML:s})})})}function $a({width:e,height:t,color:a,classSVG:o}){return f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e??25,height:t??25,fill:"none",viewBox:"0 0 32 32",children:f.jsx("g",{children:f.jsx("path",{d:"M29.998 27.429v1.6a2.999 2.999 0 0 1-3 2.971H5.002a2.999 2.999 0 0 1-2.999-2.999V27.43a8.402 8.402 0 0 1 8.403-8.403c1.828 0 2.651 1.006 5.595 1.006s3.803-1.006 5.596-1.006a8.403 8.403 0 0 1 8.402 8.403Zm-3 0a5.413 5.413 0 0 0-5.402-5.404c-.915 0-2.369 1.006-5.596 1.006s-4.69-1.006-5.595-1.006A5.413 5.413 0 0 0 5 27.43v1.6H27v-1.6ZM7.004 8.997A8.997 8.997 0 1 1 16 18.002a9.006 9.006 0 0 1-8.997-9.005Zm3 0A5.998 5.998 0 1 0 16 2.999a6.007 6.007 0 0 0-5.998 5.998Z",fill:a??"#000",className:o})})})}function Oa({hoverMenu:e,user:t,className:a}){const{listaPresente:o,getResourceFromS3:r,zordHintLoading:s}=$(e=>({listaPresente:e.listaPresente,zordHintLoading:e.zordHintLoading,getResourceFromS3:e.getResourceFromS3})),i=({className:e,...t})=>f.jsx("a",{className:Ve("loggedin-option flex w-full items-center gap-space-8 border-b border-solid border-secondary-100 px-space-16 py-space-12 text-sm text-secondary-700 first:rounded-[8px_8px_0px_0px] last:rounded-[0px_0px_8px_8px] last:border-none hover:bg-secondary-50 group dark:text-secondary-100 dark:hover:bg-dark-400",e),...t,children:t.children});return f.jsx("div",{className:Ve("login-wrapper loggedin-window-wrapper absolute inset-x-1/2 z-[10] w-[230px] invisible opacity-0 transition-all ease duration-500 translate-y-5 top-[100%] transform -translate-x-1/2",e?"opacity-100 visible translate-y-0":"pointer-events-none",a),children:f.jsxs("div",{className:"window-ctn loggedin-window-ctn pt-space-20 relative rounded-lg",children:[f.jsx("div",{className:"arrow-user top-space-8 text-secondary-50 absolute inset-x-0 flex justify-center",children:f.jsx("img",{src:D()?r("assets/global/header/react-project","icon-caret-up-fill.svg"):s(),"data-src":r("assets/global/header/react-project","icon-caret-up-fill.svg"),className:"lazyload lazyload-svg fill-cor-base !size-[20px]",alt:"Seta para cima",draggable:!1})}),f.jsx("div",{className:Ve("logged-ctn shadow-raisedBlended relative flex dark:text-secondary-50 flex-col rounded-sm border-t-2 border-solid border-cor-base bg-white dark:bg-dark-800 ",t?"loggedin ":"not-loggedin"),children:t?f.jsxs(f.Fragment,{children:[f.jsxs(i,{href:ya("/cliente/dados"),title:"Minha conta",className:"account",children:[f.jsx("img",{src:D()?r("assets/global/header/react-project","icon-user-circle-fill.svg"):s(),"data-src":r("assets/global/header/react-project","icon-user-circle-fill.svg"),className:"lazyload lazyload-svg icon icon-my-account fill-cor-base !size-[20px]",alt:"Usuário",draggable:!1}),f.jsx("span",{className:"text-logged dark:group-hover:text-secondary-50",children:"Minha conta"})]}),f.jsxs(i,{href:ya("/cliente/pedidos"),title:"Meus pedidos",className:"my-orders",children:[f.jsx("img",{src:D()?r("assets/global/header/react-project","icon-clipboard-text-fill.svg"):s(),"data-src":r("assets/global/header/react-project","icon-clipboard-text-fill.svg"),className:"lazyload lazyload-svg icon icon-my-orders fill-cor-base !size-[20px]",alt:"Copiar texto",draggable:!1}),f.jsx("span",{className:"text-logged dark:group-hover:text-secondary-50",children:"Meus pedidos"})]}),o&&f.jsxs(i,{href:ya("/cliente/lista-de-presentes"),title:"Lista de Presentes",className:"my-orders",children:[f.jsx("img",{src:D()?r("assets/global/header/react-project","icon-gift-fill.svg"):s(),"data-src":r("assets/global/header/react-project","icon-gift-fill.svg"),className:"lazyload lazyload-svg icon-gift-list fill-cor-base !size-[20px]",alt:"Presente",draggable:!1}),f.jsx("span",{className:"text-logged dark:text-secondary-100 dark:group-hover:text-secondary-50 box-border text-center leading-[18px]",children:"Lista de Presentes"})]}),f.jsxs(i,{href:ya("/cliente/dados?alteraSenha=true"),title:"Alterar senha",className:"change-password",children:[f.jsx("img",{src:D()?r("assets/global/header/react-project","icon-lock-key-fill.svg"):s(),"data-src":r("assets/global/header/react-project","icon-lock-key-fill.svg"),className:"lazyload lazyload-svg icon icon-change-password fill-cor-base !size-[20px]",alt:"Cadeado",draggable:!1}),f.jsx("span",{className:"text-logged dark:group-hover:text-secondary-50",children:"Alterar senha"})]}),f.jsxs(i,{href:ya("/login?logout"),title:"Sair",className:"exit",children:[f.jsx("img",{src:D()?r("assets/global/header/react-project","icon-caret-right.svg"):s(),"data-src":r("assets/global/header/react-project","icon-caret-right.svg"),className:"lazyload lazyload-svg icon icon-exit fill-cor-base !size-[20px]",alt:"Seta direita",draggable:!1}),f.jsx("span",{className:"text-logged dark:group-hover:text-secondary-50",children:"Sair"})]})]}):f.jsxs("div",{className:"logged-ctn not-loggedin gap-space-12 p-space-20 flex flex-col items-center justify-between text-center text-xs",children:[f.jsxs("span",{className:"usrMsg text-text-primary-color flex flex-col text-sm font-bold",children:["Já possui cadastro?",f.jsx("br",{}),"Acesse sua conta"]}),f.jsx("a",{href:ya("/login"),children:f.jsx("button",{className:"button button-base btn-text-link h-space-40 !border-cor-base !bg-cor-base px-space-10 hover:!border-cor-base hover:!bg-cor-base flex items-center justify-center rounded-sm border border-solid py-[5px] font-bold uppercase text-white transition-all hover:scale-105",children:f.jsx("span",{className:"btn-text",children:"entrar"})})}),f.jsxs("a",{href:ya("/login"),className:"usr-signup gap-space-4 text-text-primary-color flex p-[5px] text-[13px]",title:"Cadastrar",children:["cliente novo?",f.jsx("span",{className:"text-signup font-bold hover:underline",children:"Cadastrar"})]}),f.jsxs("a",{href:ya("/login?semCadastro=true"),className:"usr-signup text-text-primary-color flex flex-col p-[5px] text-[13px]",title:"Consultar pedido",children:["consulte o seu pedido",f.jsx("span",{className:"text-sem-cadastro font-bold hover:underline",children:"acompanhe aqui"})]})]})})]})})}function Da(){const[t,a]=e.useState(!1),{usuario:o}=G(e=>({usuario:e.usuario}));return f.jsxs(f.Fragment,{children:[f.jsxs("div",{onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:"login-cadastro dark:hover:border-dark-100 dark:hover:bg-dark-1000 relative z-[10] flex w-[16%] items-center justify-center rounded-[5px] border border-solid border-transparent p-[6px] hover:border-[#bbb] hover:bg-white",children:[f.jsx("div",{className:"icon-user mr-space-10",children:f.jsx($a,{color:"var(--icon-fill-base, #000)"})}),f.jsxs("div",{className:Ve("option login z-[10]",o?"user-loggedin":"user-not-loggedin"),children:[f.jsx("a",{href:ya(o?"/cliente":"/login"),title:o?"Acessar conta":"Login",className:"gap-space-12 text-cor-texto dark:text-secondary-100 z-20 flex cursor-pointer items-center justify-center text-[13px]",children:o?f.jsx("strong",{children:"Minha Conta"}):f.jsxs("span",{children:[f.jsx("strong",{children:"Entre"})," ou ",f.jsx("strong",{children:"Cadastre-se"})]})}),f.jsx(Oa,{hoverMenu:t,user:o,className:"top-[30px]"})]})]}),f.jsx(Aa,{active:t,className:"z-[4] bg-black/20",onMouseEnter:()=>a(!1)})]})}function Wa({inputRef:t,className:a}){const[o,r]=e.useState(!1),[s,i]=e.useState(null),[n,l]=e.useState(!0);return e.useEffect(()=>{const e=window.SpeechRecognition||window.webkitSpeechRecognition;if(e){const t=new e;t.continuous=!1,t.interimResults=!0,t.lang="pt-BR",i(t)}else console.warn("SpeechRecognition não está disponível neste navegador.")},[]),s&&f.jsx("span",{id:"start-recognition",className:Ve("flex size-space-40 items-center justify-center text-secondary-400 cursor-pointer",o&&"relative after:bg-error-400 after:size-space-8 after:rounded-full after:absolute after:top-space-10 after:right-space-12 after:animate-pulse",a),onClick:function(){var e;null==(e=t.current)||e.focus(),s.start(),r(!0),s.onresult=e=>{const a=e.results[0][0].transcript;t.current.value=a,t.current.dispatchEvent(new Event("keyup"))},s.onerror=e=>{"not-allowed"==e.error&&(console.warn("A permissão para usar o microfone está bloqueada!"),l(!1))},s.onend=()=>{r(!1)}},title:n?"":"A permissão para usar o microfone está bloqueada!",children:n?f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",className:"fill-secondary-400",viewBox:"0 0 256 256",children:f.jsx("path",{d:"M80,128V64a48,48,0,0,1,96,0v64a48,48,0,0,1-96,0Zm128,0a8,8,0,0,0-16,0,64,64,0,0,1-128,0,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.6A80.11,80.11,0,0,0,208,128Z"})}):f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",className:"fill-secondary-400",viewBox:"0 0 256 256",children:f.jsx("path",{d:"M213.38,229.92a8,8,0,0,1-11.3-.54l-30.92-34A78.83,78.83,0,0,1,136,207.59V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64.07,64.07,0,0,0,64,64,63.41,63.41,0,0,0,32.21-8.68l-11.1-12.2A48,48,0,0,1,80,128V95.09L42.08,53.38A8,8,0,0,1,53.92,42.62l160,176A8,8,0,0,1,213.38,229.92Zm-24.19-63.13a7.88,7.88,0,0,0,3.51.82,8,8,0,0,0,7.19-4.49A79.16,79.16,0,0,0,208,128a8,8,0,0,0-16,0,63.32,63.32,0,0,1-6.48,28.09A8,8,0,0,0,189.19,166.79Zm-27.33-29.22A8,8,0,0,0,175.74,133a49.49,49.49,0,0,0,.26-5V64A48,48,0,0,0,84,44.87a8,8,0,0,0,1.41,8.57Z"})})})}function Ga({className:e,...t}){return f.jsx("div",{className:Ve("animate-pulse rounded-md bg-muted bg-secondary-100",e),...t})}function Ua(e,t){if(e.midia_path&&function(e){if(!e)return!1;try{const t=new URL(e),a=t.hostname.replace("www.","");return!!(!["youtube.com","youtu.be","youtube-nocookie.com"].some(e=>a.endsWith(e))||"/watch"===t.pathname&&t.searchParams.has("v")||"youtu.be"===a&&t.pathname.length>1||t.pathname.startsWith("/embed/")||t.pathname.startsWith("/v/")||t.pathname.startsWith("/shorts/")||"youtube-nocookie.com"===a&&t.pathname.startsWith("/embed/"))}catch{return!1}}(e.midia_path)){const t=function(e){const t=new URL(e);if(t.searchParams.delete("si"),(e=t.toString()).includes("shorts")){const t=e.split("shorts/");if(t[1])return t[1].split("?")[0]}const a=new URLSearchParams(e.split("?")[1]);if(a.has("v"))return a.get("v");return null}(e.midia_path);return f.jsx("iframe",{className:"w-space-48 h-auto",src:`https://www.youtube.com/embed/${t}?autoplay=1&mute=1&loop=1`,title:"YouTube video player",allow:"autoplay; encrypted-media",allowFullScreen:!0})}if(e.midia_tipo_file&&("2"==e.midia_tipo_file||"3"==e.midia_tipo_file)&&(e.midia_path.endsWith(".mp4")||e.midia_arquivo_nome&&e.midia_arquivo_nome.endsWith(".mp4"))){let a;return a=e.midia_path.endsWith(".mp4")?e.midia_path:`${t}/${e.midia_path}${e.midia_arquivo_nome}`,f.jsx("video",{className:"w-space-48 h-auto",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,children:f.jsx("source",{src:a,type:"video/mp4"})})}return f.jsx("img",{className:"w-space-48 h-auto",src:`${t}/${e.midia_path}${e.midia_arquivo_nome}`,alt:e.midia_alt?e.midia_alt:e.nome})}function Qa(e,t,a){let o;if("1"==(null==t?void 0:t.precoPrincipal)&&e.valor_boleto&&Number(e.valor_boleto)>0)o=e.valor_boleto;else if("2"==(null==t?void 0:t.precoPrincipal)&&e.valor&&Number(e.valor)>0){let a;a=1==(null==t?void 0:t.condicaoParcelamentoProduto)?e.valor:2==(null==t?void 0:t.condicaoParcelamentoProduto)&&e.valor_cartao[5]?e.valor_cartao[5].valor:e.valor_cartao[1],o=a}else o="4"==(null==t?void 0:t.precoPrincipal)&&e.valor_pix&&e.valor_pix>0?e.valor_pix:e.valor;return o=(null==t?void 0:t.valoresSomenteLogado)?"R$ XXX,XX":xa(o),f.jsx("span",{className:Ve("flex items-center justify-end whitespace-nowrap text-sm font-semibold text-success-600",(null==t?void 0:t.valoresSomenteLogado)&&"blur-[5px]",null==a?void 0:a.valorProduto),children:o})}function Ja({inputRef:t,className:a,forceBuscaTermos:o}){const[r,s]=e.useState(!1),[i,n]=e.useState([]),[l,c]=e.useState(!0),d=[{termo:"bota galocha"},{termo:"chama"},{termo:"calça"},{termo:"Camisa"},{termo:"Gato"},{termo:"Enxada"}];let u=null;const{hostImagem:m,confSite:p,termosMaisPesquisados:h}=$(e=>({hostImagem:e.hostImagem,confSite:e.lojaConfiguracaoSite,termosMaisPesquisados:e.termosMaisPesquisados})),x=()=>{u&&clearTimeout(u),u=setTimeout(()=>{var e,a,o;const r=$.getState().termosMaisPesquisados;if((null==(e=t.current)?void 0:e.value)&&(null==(a=t.current)?void 0:a.value.length)>=((null==p?void 0:p.minimoCaracteresPaginaPesquisa)||3)){s(!0),c(!1);const e=new FormData;e.set("q",null==(o=t.current)?void 0:o.value),g("busca?operation=loadSuggestPesquisa",{method:"POST",body:e},!1)}else r.length>0?u=setTimeout(()=>{s(!1),c(!0),n(r)},350):v()},350)},v=()=>{setTimeout(()=>{var e;const a=(null==(e=t.current)?void 0:e.value)||"";if(a.length>=((null==p?void 0:p.minimoCaracteresPaginaPesquisa)||3)){s(!0),c(!1);const e=new FormData;e.set("q",a),g("busca?operation=loadSuggestPesquisa",{method:"POST",body:e},!1)}else h.length<1?g("busca?operation=loadSuggestMaisPesquisados",{},!0):n(h)},350)};e.useEffect(()=>(o&&v(),t.current&&(t.current.addEventListener("keyup",x),t.current.addEventListener("focus",v)),()=>{t.current&&(t.current.removeEventListener("keyup",x),t.current.removeEventListener("focus",v))}),[]);const g=async(e,t,a)=>{try{if(D()&&(await new Promise(e=>setTimeout(e,2e3)),a))return n(d),void $.setState({termosMaisPesquisados:d});await W(e,t).then(e=>{s(!1),a&&(null==e?void 0:e.produtosPesquisados)&&$.setState({termosMaisPesquisados:e.produtosPesquisados}),n(e.produtosPesquisados)})}catch(o){console.error("Erro ao realizar a requisição: "+o)}},b=window.screen.height-96;return f.jsx("div",{id:"suggest-pesquisa",children:!(null==p?void 0:p.acessoRestrito)&&f.jsxs("div",{style:{maxHeight:b+"px"},className:Ve("suggest-search w-full",l&&" termos-pesquisados","absolute inset-x-0 top-0 mt-space-8 mx-space-8 h-auto -translate-y-10 invisible overflow-hidden rounded-md bg-white dark:bg-dark-800 opacity-0 pointer-events-none shadow-overlay duration-500",(r||i&&i.length>0)&&"opacity-100 pointer-events-auto visible translate-y-0",i&&i.length>10&&"overflow-y-scroll",a),children:[f.jsx("ul",{className:Ve("flex flex-col absolute inset-0 transition-opacity duration-300",r?"opacity-100 z-10 pointer-events-auto":"opacity-0 z-0 pointer-events-none"),children:Array.from({length:10}).map((e,t)=>f.jsxs("li",{className:"gap-space-16 border-secondary-100 px-space-16 dark:border-dark-200 flex w-full items-center justify-between border-b py-[6px] last:border-0",children:[f.jsxs("div",{className:"gap-space-16 flex flex-1 items-center",children:[f.jsx(Ga,{className:"size-[35px] rounded-sm"}),f.jsxs("div",{className:"gap-space-4 flex w-full flex-1 flex-col",children:[f.jsx(Ga,{className:"h-space-12 w-full rounded-sm"}),f.jsx(Ga,{className:"h-space-12 w-[60%] rounded-sm"})]})]}),f.jsx(Ga,{className:"h-space-20 w-space-64 rounded-sm"})]},t))}),f.jsxs("div",{className:Ve("transition-opacity duration-300",r?"opacity-0 pointer-events-none":"opacity-100 pointer-events-auto"),children:[l&&i.length>0&&f.jsxs("ul",{className:"flex flex-col",children:[f.jsxs("li",{className:"termos-mais-pesquisados gap-space-16 border-border-color px-space-16 py-space-8 text-secondary-700 dark:border-dark-200 dark:text-secondary-200 flex min-h-[50px] items-center border-b",children:[f.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"icon-quote-pink fill-black dark:fill-white",fill:"#000000",viewBox:"0 0 256 256",children:f.jsx("path",{d:"M116,72v88a48.05,48.05,0,0,1-48,48,8,8,0,0,1,0-16,32,32,0,0,0,32-32v-8H40a16,16,0,0,1-16-16V72A16,16,0,0,1,40,56h60A16,16,0,0,1,116,72ZM216,56H156a16,16,0,0,0-16,16v64a16,16,0,0,0,16,16h60v8a32,32,0,0,1-32,32,8,8,0,0,0,0,16,48.05,48.05,0,0,0,48-48V72A16,16,0,0,0,216,56Z"})}),f.jsx("span",{className:"description text-base font-bold",children:"Termos mais buscados"})]}),i.map((e,t)=>f.jsx("li",{className:"termo-value text-xs","data-value":e.termo,children:f.jsxs("a",{href:ya("busca?q="+encodeURI(e.termo)),className:"gap-space-16 border-secondary-100 !px-space-16 last:pb-space-16 hover:bg-secondary-50 dark:border-dark-100 dark:hover:bg-dark-200 flex items-center border-b border-solid last:border-0",children:[f.jsx("div",{className:"number size-space-24 bg-secondary-900 text-secondary-50 dark:bg-secondary-500 dark:text-dark-800 flex items-center justify-center rounded-full",children:t+1}),f.jsx("span",{className:"termo",children:f.jsx("span",{className:"text-secondary-900 dark:text-secondary-200",children:e.termo})})]},e.termo)},e.termo))]}),!l&&i.length>0&&f.jsx("ul",{className:"flex flex-col",children:i.map(e=>f.jsx("li",{"data-id":e.codigo,className:Ve("border-b border-solid border-secondary-100 dark:border-dark-100 last:border-none",e.qtde_estoque>0?"in-stock":"out-stock opacity-50"),children:f.jsxs("a",{href:e.link,className:"gap-space-16 border-secondary-100 px-space-16 hover:bg-secondary-50 dark:border-dark-100 dark:hover:bg-dark-200 flex w-full items-center justify-between border-b py-[6px] last:border-0",children:[f.jsxs("div",{className:"gap-space-16 flex items-center",children:[f.jsx("div",{className:"imagem size-space-36 flex items-center justify-center overflow-hidden",children:Ua(e,m)}),f.jsx("div",{className:"product-name",children:f.jsx("span",{className:"text-secondary-900 dark:text-secondary-300 line-clamp-2 w-auto flex-1 text-xs",children:e.nome})})]}),e.qtde_estoque>0&&f.jsx("div",{className:"product-value",children:Qa(e,p)})]},e.codigo)},e.produto_id))})]})]})})}function Ka(){var t;const[a,o]=e.useState(!1),r=e.useRef(null),{lojaConfiguracaoSite:s,lojaConfiguracaoLayout:i,zordHintLoading:n,getResourceFromS3:l}=$(e=>({lojaConfiguracaoSite:e.lojaConfiguracaoSite,lojaConfiguracaoLayout:e.lojaConfiguracaoLayout,zordHintLoading:e.zordHintLoading,getResourceFromS3:e.getResourceFromS3})),c=(null==s?void 0:s.minimoCaracteresPaginaPesquisa)&&(null==s?void 0:s.minimoCaracteresPaginaPesquisa)>0;return f.jsxs("div",{className:Ve("search-area w-[610px] border border-solid border-border-color z-[3]",(null==s?void 0:s.utilizaPesquisaPorVoz)&&"active-recognition"),children:[f.jsxs("form",{id:"frm-search",action:ya("/busca"),method:"GET",onSubmit:e=>function(e,t){var a;const o=null==(a=$.getState().lojaConfiguracaoSite)?void 0:a.minimoCaracteresPaginaPesquisa;return!(t&&o&&t.current&&t.current.value.trim().length{t.current&&t.current.setCustomValidity("")},2e3),1))}(e,r),className:"relative z-[4] flex items-center",children:[(null==s?void 0:s.utilizaPesquisaPorVoz)&&f.jsx(Wa,{inputRef:r}),f.jsx("input",{id:"search",name:"q",type:"search",className:"search-input h-space-40 bg-search-input !pl-space-10 dark:text-secondary-50 flex w-full flex-1 !border-none !py-0 !text-xs outline-none dark:bg-transparent",placeholder:(null==(t=null==i?void 0:i.textosPersonalizados)?void 0:t["header.inputSearch.title"])??"Faça uma pesquisa...",ref:r,autoComplete:"off",tabIndex:0,onClick:()=>o(!0),onInput:e=>function(e){if(!e||!("value"in e))return;let t=String(e.value);t=t.replace(/[^a-zA-Z0-9!@#$%¨&*()_+{}`^?:>o(!1)})]})}function Ya(){const{carrinhoLength:e}=G(e=>({carrinhoLength:e.carrinhoLength})),{lojaConfiguracaoLayout:t}=$(e=>({lojaConfiguracaoLayout:e.lojaConfiguracaoLayout}));return f.jsx("div",{className:"header-middle bg-primary-color relative w-full py-[5px]",children:f.jsxs("div",{className:Ve("container mx-auto flex h-auto items-center justify-between gap-space-12",(null==t?void 0:t.carrinhoRapidoLateral)?"cart-02":"cart-01"),children:[f.jsx("div",{className:"logo flex max-w-[250px] items-center justify-center",children:f.jsx(Fa,{})}),f.jsx(Ka,{}),f.jsx(Da,{}),f.jsxs(qa,{customStyling:{div:"relative flex size-[50px] items-center justify-center rounded-sm border border-solid border-transparent transition-all "+((null==t?void 0:t.carrinhoRapidoLateral)?"hover:border-secondary-200":"hover:bg-white dark:hover:bg-dark-600")},children:[f.jsx("div",{className:"icon relative flex items-center",children:f.jsx(Sa,{width:30,height:30,color:U[600],classSVG:"dark:fill-secondary-200"})}),f.jsx("div",{className:"item-ctn font-roboto-mono size-space-20 bg-cor-base text-color-white absolute bottom-1 right-1 flex items-center justify-center rounded-full text-xs",children:f.jsx("span",{children:e>0?e:"0"})})]})]})})}function eo({renderFromBundle:t=!1}){return e.useEffect(()=>{t||async function(){const e=await fetch("http://localhost:3333/headerLocalData"),t=await e.json();console.log("Dados carregados:",t),$.setState({logo:t.logo,listaPresente:t.listaPresente,menu:t.menu,menuSecundario:t.menuSecundario,lojaConfiguracaoSite:t.lojaConfiguracaoSite,lojaConfiguracaoAtendimento:t.lojaConfiguracaoAtendimento,contatoAtendimento:t.contatoAtendimento,midiaTamanhos:t.midiaTamanhos,lojaConfiguracaoLayout:t.lojaConfiguracaoLayout,lojaConfiguracaoSocial:t.lojaConfiguracaoSocial,hostImagem:"https://fallen.cdn.magazord.com.br",lojaNome:"Arkuero",lojaUrlAcesso:"https://trunk.cliente.com.br",produtosRecomendados:t.ProdutosRecomendados,listaFavoritos:t.listaFavoritos,lojaConfiguracaoPlugins:t.lojaConfiguracaoPlugins,getResourceFromS3:(e,t)=>"https://public-resources.cdn.magazord.com.br/"+e+"/"+t,zordHintLoading:()=>"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),G.setState({carrinhoLength:t.carrinhoLength,usuario:t.usuario,itens:t.itens,totalItens:t.totalItens})}()},[]),f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"header-top bg-base-color text-white",children:f.jsx("div",{className:"container mx-auto",children:f.jsx(ba,{hasIconWhatsApp:!0,separator:"/",customStyling:{ul:"h-auto gap-[7px]",li:"text-xs py-[5px] gap-[7px]",span:"separator"}})})}),f.jsx(Ya,{}),f.jsx(za,{})]})}return class{constructor({id:e,logo:t,listaPresente:a,menu:o,lojaConfiguracaoSite:r,lojaConfiguracaoLayout:s,lojaConfiguracaoAtendimento:i,lojaConfiguracaoSocial:n,hostImagem:l,device:c,lojaUrlAcesso:d,midiaTamanhos:u,produtosRecomendados:m,listaFavoritos:p,lojaConfiguracaoPlugins:h,getResourceFromS3:x,zordHintLoading:v}){$.setState({logo:t,listaPresente:a,menu:o,lojaConfiguracaoSite:r,lojaConfiguracaoLayout:s,lojaConfiguracaoAtendimento:i,lojaConfiguracaoSocial:n,hostImagem:l,lojaUrlAcesso:d,midiaTamanhos:u,produtosRecomendados:m,listaFavoritos:p,lojaConfiguracaoPlugins:h,getResourceFromS3:x,zordHintLoading:v}),F.setState({device:c});const g=window.React;window.ReactDOM.createRoot(document.getElementById(e)).render(f.jsx(g.StrictMode,{children:f.jsx(eo,{renderFromBundle:!0})}))}}}(React);